Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 249.4 MB, free: 3.125 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.521/2.521, allocations: 443.4 MB / 0.7304 GB, free: 13.82 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 67.89 kB / 1.059 GB, free: 360 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3446, allocations: 160.7 MB / 1.216 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003175/0.3477, allocations: 1.662 MB / 1.218 GB, free: 13.63 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009899/0.3487, allocations: 0.5534 MB / 1.218 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.464e-05/0.3488, allocations: 4 kB / 1.218 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001865/0.349, allocations: 23.78 kB / 1.218 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002709/0.3493, allocations: 67.61 kB / 1.218 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.3494, allocations: 67.86 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002109/0.3496, allocations: 127.6 kB / 1.219 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.3498, allocations: 37.45 kB / 1.219 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.35, allocations: 59.72 kB / 1.219 GB, free: 12.69 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.3501, allocations: 63.69 kB / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.3501, allocations: 8 kB / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.731e-05/0.3502, allocations: 23.98 kB / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.3503, allocations: 55.77 kB / 1.219 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.3504, allocations: 55.61 kB / 1.219 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002781/0.3507, allocations: 151.2 kB / 1.219 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3507, allocations: 4 kB / 1.219 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3507, allocations: 0 / 1.219 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.3507, allocations: 0 / 1.219 GB, free: 12.33 MB / 0.9669 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.0007648/0.3515, allocations: 470.4 kB / 1.219 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3515, allocations: 12.03 kB / 1.219 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.268e-05/0.3516, allocations: 20.8 kB / 1.219 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.3519, allocations: 249 kB / 1.22 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.352, allocations: 4.375 kB / 1.22 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.352, allocations: 4.375 kB / 1.22 GB, free: 11.5 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003202/0.3523, allocations: 121.8 kB / 1.22 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3523, allocations: 0 / 1.22 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.3523, allocations: 0 / 1.22 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3523, allocations: 4 kB / 1.22 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.3526, allocations: 67.94 kB / 1.22 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006377/0.3532, allocations: 380.5 kB / 1.22 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.3534, allocations: 34.56 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.3535, allocations: 28.89 kB / 1.22 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3535, allocations: 8 kB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002302/0.3537, allocations: 101 kB / 1.22 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3537, allocations: 0 / 1.22 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004485/0.3542, allocations: 117.5 kB / 1.221 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.533e-05/0.3542, allocations: 81.11 kB / 1.221 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.3545, allocations: 257 kB / 1.221 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.3545, allocations: 25.7 kB / 1.221 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3546, allocations: 128.1 kB / 1.221 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.3547, allocations: 7.891 kB / 1.221 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.642e-05/0.3547, allocations: 17.72 kB / 1.221 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3549, allocations: 334.8 kB / 1.221 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.355, allocations: 19.98 kB / 1.221 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.3551, allocations: 55.34 kB / 1.221 GB, free: 9.594 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.3553, allocations: 66.55 kB / 1.221 GB, free: 9.52 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3553, allocations: 0 / 1.221 GB, free: 9.52 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002774/0.3556, allocations: 101.5 kB / 1.222 GB, free: 9.414 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.3556, allocations: 8.094 kB / 1.222 GB, free: 9.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3556, allocations: 4 kB / 1.222 GB, free: 9.402 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3557, allocations: 3.938 kB / 1.222 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.3558, allocations: 15.92 kB / 1.222 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.3558, allocations: 0 / 1.222 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.084e-05/0.3559, allocations: 15.94 kB / 1.222 GB, free: 9.367 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.3559, allocations: 4 kB / 1.222 GB, free: 9.363 MB / 0.9669 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.0001272/0.356, allocations: 125.8 kB / 1.222 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.3561, allocations: 19.91 kB / 1.222 GB, free: 9.211 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.601e-05/0.3561, allocations: 25.23 kB / 1.222 GB, free: 9.184 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3561, allocations: 7.875 kB / 1.222 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3561, allocations: 288 / 1.222 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.3561, allocations: 0 / 1.222 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.3563, allocations: 213.6 kB / 1.222 GB, free: 8.918 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3564, allocations: 8 kB / 1.222 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.871e-05/0.3564, allocations: 11.97 kB / 1.222 GB, free: 8.898 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.3564, allocations: 4 kB / 1.222 GB, free: 8.895 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.3564, allocations: 0 / 1.222 GB, free: 8.895 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3564, allocations: 11.88 kB / 1.222 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3564, allocations: 0 / 1.222 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.3568, allocations: 128.9 kB / 1.222 GB, free: 8.738 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.638e-05/0.3568, allocations: 89.02 kB / 1.222 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.43e-05/0.3568, allocations: 0 / 1.222 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.689e-05/0.3569, allocations: 19.92 kB / 1.222 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.11e-05/0.357, allocations: 4 kB / 1.222 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.357, allocations: 7.984 kB / 1.222 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000219/0.3572, allocations: 184.5 kB / 1.222 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.3572, allocations: 0 / 1.222 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002305/0.3575, allocations: 27.92 kB / 1.222 GB, free: 8.395 MB / 0.9669 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.0003445/0.3578, allocations: 120.5 kB / 1.223 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003144/0.3581, allocations: 59.88 kB / 1.223 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3581, allocations: 0 / 1.223 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.3582, allocations: 27.97 kB / 1.223 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.3586, allocations: 46.98 kB / 1.223 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006143/0.3592, allocations: 291.8 kB / 1.223 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.3596, allocations: 0.7197 MB / 1.224 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.17e-05/0.3597, allocations: 16.55 kB / 1.224 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4e-05/0.3597, allocations: 15.44 kB / 1.224 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of SimCode: time 5.81e-07/0.3597, allocations: 3.938 kB / 1.224 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of Templates: time 0.005719/0.3655, allocations: 1.776 MB / 1.225 GB, free: 5.305 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.913042009808123]