Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009637/0.0009641, allocations: 92.78 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007376/0.007376, allocations: 172.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.388/2.388, allocations: 390.9 MB / 0.6663 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005009/0.000501, allocations: 8 kB / 0.816 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9959/0.9964, allocations: 142.4 MB / 0.955 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002483/0.999, allocations: 1.349 MB / 0.9564 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00144/1, allocations: 0.5363 MB / 0.9569 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/1.001, allocations: 2.125 kB / 0.9569 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003352/1.001, allocations: 20.67 kB / 0.9569 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003616/1.001, allocations: 60.16 kB / 0.957 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/1.002, allocations: 60.08 kB / 0.957 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002768/1.002, allocations: 121.6 kB / 0.9571 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003015/1.002, allocations: 52.8 kB / 0.9572 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/1.002, allocations: 46.22 kB / 0.9572 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/1.003, allocations: 49.58 kB / 0.9573 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.153e-05/1.003, allocations: 3.562 kB / 0.9573 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.896e-05/1.003, allocations: 22.7 kB / 0.9573 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001389/1.003, allocations: 39.17 kB / 0.9573 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.558e-05/1.003, allocations: 75.5 kB / 0.9574 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002917/1.003, allocations: 131.6 kB / 0.9575 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/1.003, allocations: 0 / 0.9575 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.366e-06/1.003, allocations: 0 / 0.9575 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.716e-06/1.003, allocations: 1.406 kB / 0.9575 GB, free: 5.902 MB / 0.7169 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.0008015/1.004, allocations: 460 kB / 0.958 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.324e-05/1.004, allocations: 12.2 kB / 0.958 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/1.004, allocations: 18.03 kB / 0.958 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/1.005, allocations: 229.9 kB / 0.9582 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/1.005, allocations: 2.719 kB / 0.9582 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/1.005, allocations: 11.98 kB / 0.9582 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/1.005, allocations: 119.7 kB / 0.9583 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/1.005, allocations: 1.406 kB / 0.9584 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/1.005, allocations: 7.984 kB / 0.9584 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/1.005, allocations: 1.375 kB / 0.9584 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002576/1.005, allocations: 76.84 kB / 0.9584 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/1.006, allocations: 391.8 kB / 0.9588 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/1.006, allocations: 51.55 kB / 0.9589 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/1.006, allocations: 41.55 kB / 0.9589 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/1.006, allocations: 0 / 0.9589 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003262/1.007, allocations: 109.3 kB / 0.959 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/1.007, allocations: 0 / 0.959 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005539/1.007, allocations: 144.5 kB / 0.9591 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/1.007, allocations: 77.11 kB / 0.9592 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/1.007, allocations: 253 kB / 0.9595 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/1.008, allocations: 25.7 kB / 0.9595 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.658e-05/1.008, allocations: 133.6 kB / 0.9596 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/1.008, allocations: 9.219 kB / 0.9596 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/1.008, allocations: 11.09 kB / 0.9596 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.518e-05/1.008, allocations: 331 kB / 0.9599 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/1.008, allocations: 31.22 kB / 0.96 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/1.008, allocations: 62.72 kB / 0.96 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/1.008, allocations: 85.19 kB / 0.9601 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/1.008, allocations: 0 / 0.9601 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003236/1.009, allocations: 116.4 kB / 0.9602 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/1.009, allocations: 4.125 kB / 0.9602 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/1.009, allocations: 1.375 kB / 0.9602 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/1.009, allocations: 5.312 kB / 0.9602 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/1.009, allocations: 18.98 kB / 0.9602 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/1.009, allocations: 9.297 kB / 0.9603 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.244e-05/1.009, allocations: 19 kB / 0.9603 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/1.009, allocations: 5.359 kB / 0.9603 GB, free: 3.496 MB / 0.7169 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.0001069/1.009, allocations: 124.8 kB / 0.9604 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/1.009, allocations: 23.95 kB / 0.9604 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.505e-05/1.009, allocations: 18.75 kB / 0.9604 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/1.009, allocations: 3.938 kB / 0.9604 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.009, allocations: 1.375 kB / 0.9604 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/1.009, allocations: 0 / 0.9604 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/1.009, allocations: 219.6 kB / 0.9607 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/1.009, allocations: 0 / 0.9607 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/1.009, allocations: 15.73 kB / 0.9607 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/1.009, allocations: 0 / 0.9607 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/1.009, allocations: 288 / 0.9607 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.009, allocations: 5.219 kB / 0.9607 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/1.009, allocations: 0 / 0.9607 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000334/1.01, allocations: 142.4 kB / 0.9608 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/1.01, allocations: 96.75 kB / 0.9609 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/1.01, allocations: 4.906 kB / 0.9609 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.142e-05/1.01, allocations: 21.77 kB / 0.9609 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.924e-05/1.01, allocations: 14.17 kB / 0.9609 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/1.01, allocations: 3.969 kB / 0.9609 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000201/1.01, allocations: 188.5 kB / 0.9611 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.543e-06/1.01, allocations: 0 / 0.9611 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002304/1.011, allocations: 21.75 kB / 0.9611 GB, free: 2.73 MB / 0.7169 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.0002636/1.011, allocations: 128.7 kB / 0.9613 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003086/1.011, allocations: 68.45 kB / 0.9613 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.011, allocations: 0 / 0.9613 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/1.011, allocations: 35.41 kB / 0.9614 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/1.012, allocations: 40.75 kB / 0.9614 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005943/1.012, allocations: 339 kB / 0.9617 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/1.012, allocations: 0.7132 MB / 0.9624 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.126e-05/1.012, allocations: 14.42 kB / 0.9624 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.984e-05/1.013, allocations: 17.02 kB / 0.9625 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of SimCode: time 3.51e-07/1.013, allocations: 0 / 0.9625 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of Templates: time 0.005115/1.018, allocations: 1.603 MB / 0.964 GB, free: 0.7578 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches