Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 79.83 kB / 19.18 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 164.5 kB / 22.46 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.891/2.891, allocations: 377.8 MB / 0.6221 GB, free: 12.62 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.9814 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.077e-05/3.233e-05, allocations: 2.281 kB / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003072/0.003104, allocations: 1.654 MB / 0.983 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.004309, allocations: 0.5765 MB / 0.9836 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.408e-05/0.004393, allocations: 11.88 kB / 0.9836 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.004572, allocations: 23.8 kB / 0.9836 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.00484, allocations: 69.28 kB / 0.9837 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.005071, allocations: 75.78 kB / 0.9837 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000224/0.005295, allocations: 135.5 kB / 0.9839 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.005447, allocations: 37.58 kB / 0.9839 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.005643, allocations: 83.73 kB / 0.984 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.005756, allocations: 51.81 kB / 0.984 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.00579, allocations: 8 kB / 0.984 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.453e-05/0.005865, allocations: 28 kB / 0.9841 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.005969, allocations: 47.83 kB / 0.9841 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.773e-05/0.006026, allocations: 35.86 kB / 0.9842 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.006272, allocations: 151.5 kB / 0.9843 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.006276, allocations: 0 / 0.9843 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of FrontEnd: time 6.92e-07/0.006277, allocations: 0 / 0.9843 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.837e-06/0.006285, allocations: 0 / 0.9843 GB, free: 9.027 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006795/0.006965, allocations: 405.2 kB / 0.9847 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.007, allocations: 8.031 kB / 0.9847 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.007183, allocations: 32.78 kB / 0.9847 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003628/0.007546, allocations: 189.2 kB / 0.9849 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.007557, allocations: 8.375 kB / 0.9849 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.007575, allocations: 8.312 kB / 0.9849 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003404/0.007915, allocations: 157.6 kB / 0.9851 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.007924, allocations: 192 / 0.9851 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.007941, allocations: 4.375 kB / 0.9851 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.007947, allocations: 3.938 kB / 0.9851 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002519/0.008199, allocations: 67.94 kB / 0.9851 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005744/0.008774, allocations: 304.3 kB / 0.9854 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.008919, allocations: 30.56 kB / 0.9855 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.009048, allocations: 36.89 kB / 0.9855 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.009061, allocations: 0 / 0.9855 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.009334, allocations: 164.4 kB / 0.9857 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.009335, allocations: 0 / 0.9857 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0004634/0.009799, allocations: 113.5 kB / 0.9858 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.009853, allocations: 81.09 kB / 0.9858 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.01011, allocations: 240.1 kB / 0.9861 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.01014, allocations: 33.7 kB / 0.9861 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.01023, allocations: 124 kB / 0.9862 GB, free: 6.871 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.01026, allocations: 19.84 kB / 0.9862 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.0103, allocations: 17.7 kB / 0.9863 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.01046, allocations: 330.8 kB / 0.9866 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.01058, allocations: 27.91 kB / 0.9866 GB, free: 6.469 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.01072, allocations: 73.11 kB / 0.9867 GB, free: 6.379 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002337/0.01096, allocations: 66.56 kB / 0.9867 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.01096, allocations: 0 / 0.9867 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003006/0.01126, allocations: 101.5 kB / 0.9868 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.01129, allocations: 4 kB / 0.9868 GB, free: 6.195 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.01129, allocations: 11.97 kB / 0.9868 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.01131, allocations: 4 kB / 0.9868 GB, free: 6.18 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.01142, allocations: 11.98 kB / 0.9869 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.01143, allocations: 0 / 0.9869 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.231e-05/0.01152, allocations: 15.98 kB / 0.9869 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.01153, allocations: 3.938 kB / 0.9869 GB, free: 6.148 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001206/0.01165, allocations: 126.4 kB / 0.987 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.01168, allocations: 15.91 kB / 0.987 GB, free: 6 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.01172, allocations: 21.02 kB / 0.987 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.01172, allocations: 4 kB / 0.987 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.01172, allocations: 0 / 0.987 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.01173, allocations: 0 / 0.987 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.01188, allocations: 157.2 kB / 0.9872 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.01189, allocations: 0 / 0.9872 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-05/0.01197, allocations: 11.98 kB / 0.9872 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.01197, allocations: 0 / 0.9872 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.01198, allocations: 0 / 0.9872 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.01198, allocations: 0 / 0.9872 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01198, allocations: 0 / 0.9872 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003147/0.0123, allocations: 132.8 kB / 0.9873 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.978e-05/0.01232, allocations: 11.91 kB / 0.9873 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.01234, allocations: 3.984 kB / 0.9873 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.01242, allocations: 8 kB / 0.9873 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.01247, allocations: 7.984 kB / 0.9874 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.01249, allocations: 4 kB / 0.9874 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001766/0.01267, allocations: 181.6 kB / 0.9875 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.01267, allocations: 3.938 kB / 0.9875 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002332/0.0129, allocations: 27.94 kB / 0.9876 GB, free: 5.391 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002584/0.01316, allocations: 128.8 kB / 0.9877 GB, free: 5.266 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003023/0.01346, allocations: 59.89 kB / 0.9877 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.01347, allocations: 4 kB / 0.9877 GB, free: 5.203 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.01359, allocations: 27.97 kB / 0.9878 GB, free: 5.176 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.01389, allocations: 42.3 kB / 0.9878 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005775/0.01447, allocations: 282.6 kB / 0.9881 GB, free: 4.828 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.01458, allocations: 114.3 kB / 0.9882 GB, free: 4.695 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.47e-05/0.01465, allocations: 20.41 kB / 0.9882 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.01469, allocations: 20.48 kB / 0.9882 GB, free: 4.656 MB / 0.9356 GB Notification: Performance of SimCode: time 3.51e-07/0.01469, allocations: 0 / 0.9882 GB, free: 4.656 MB / 0.9356 GB Notification: Performance of Templates: time 0.00537/0.02006, allocations: 1.747 MB / 0.9899 GB, free: 2.945 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.908376727253199]