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.0009937/0.0009937, allocations: 80.8 kB / 20.75 MB, free: 3.738 MB / 18.57 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.000978/0.000978, allocations: 165 kB / 24.17 MB, free: 328 kB / 18.57 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 0.9774/0.9774, allocations: 177.1 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.974/1.974, allocations: 377.9 MB / 0.624 GB, free: 8.336 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.543e-06/1.543e-06, allocations: 0 / 0.76 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.74e-05/1.895e-05, allocations: 3.719 kB / 0.76 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002338/0.002357, allocations: 1.761 MB / 0.7618 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0008172/0.003174, allocations: 0.6066 MB / 0.7623 GB, free: 4.246 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.407e-05/0.003248, allocations: 8.469 kB / 0.7624 GB, free: 4.238 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.003407, allocations: 25.44 kB / 0.7624 GB, free: 4.215 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.003612, allocations: 72.34 kB / 0.7624 GB, free: 4.152 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.003758, allocations: 65.28 kB / 0.7625 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001623/0.00392, allocations: 148 kB / 0.7626 GB, free: 3.949 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.004035, allocations: 35.19 kB / 0.7627 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.004194, allocations: 79.8 kB / 0.7628 GB, free: 3.836 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 8.702e-05/0.004281, allocations: 53.12 kB / 0.7628 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.004303, allocations: 8 kB / 0.7628 GB, free: 3.777 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 7.244e-05/0.004375, allocations: 27.92 kB / 0.7628 GB, free: 3.75 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.713e-05/0.004452, allocations: 52.8 kB / 0.7629 GB, free: 3.699 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.695e-05/0.004489, allocations: 31.91 kB / 0.7629 GB, free: 3.668 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.004642, allocations: 120 kB / 0.763 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.004644, allocations: 0 / 0.763 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.81e-07/0.004645, allocations: 1.75 kB / 0.763 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.004649, allocations: 0 / 0.763 GB, free: 3.551 MB / 0.7136 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.0003644/0.005013, allocations: 364 kB / 0.7634 GB, free: 3.172 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.005044, allocations: 12.03 kB / 0.7634 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.005155, allocations: 22.12 kB / 0.7634 GB, free: 3.141 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.00535, allocations: 189.9 kB / 0.7636 GB, free: 2.93 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.005359, allocations: 5 kB / 0.7636 GB, free: 2.926 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.005372, allocations: 13.11 kB / 0.7636 GB, free: 2.914 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.005519, allocations: 138 kB / 0.7638 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.005527, allocations: 5.156 kB / 0.7638 GB, free: 2.754 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.005537, allocations: 4.375 kB / 0.7638 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.005547, allocations: 7.938 kB / 0.7638 GB, free: 2.742 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.403e-05/0.005571, allocations: 9.156 kB / 0.7638 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003096/0.00588, allocations: 217.7 kB / 0.764 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.68e-05/0.005927, allocations: 19.14 kB / 0.764 GB, free: 2.477 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.752e-05/0.005945, allocations: 6.016 kB / 0.764 GB, free: 2.469 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.005962, allocations: 4.062 kB / 0.764 GB, free: 2.465 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/0.006086, allocations: 124.4 kB / 0.7641 GB, free: 2.312 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.006088, allocations: 1.031 kB / 0.7641 GB, free: 2.312 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001347/0.006222, allocations: 49.67 kB / 0.7642 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.006269, allocations: 77.11 kB / 0.7643 GB, free: 2.164 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.006417, allocations: 210 kB / 0.7645 GB, free: 1.945 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.006431, allocations: 25.7 kB / 0.7645 GB, free: 1.914 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.533e-05/0.006487, allocations: 121.5 kB / 0.7646 GB, free: 1.793 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.006509, allocations: 3.953 kB / 0.7646 GB, free: 1.789 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.00654, allocations: 13.72 kB / 0.7646 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.006641, allocations: 333.5 kB / 0.7649 GB, free: 1.438 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.342e-05/0.006655, allocations: 3.984 kB / 0.7649 GB, free: 1.434 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.96e-05/0.006704, allocations: 65.23 kB / 0.765 GB, free: 1.352 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.056e-05/0.006745, allocations: 25.39 kB / 0.765 GB, free: 1.316 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.006748, allocations: 4 kB / 0.765 GB, free: 1.312 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.249e-05/0.006821, allocations: 52.22 kB / 0.7651 GB, free: 1.258 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.006836, allocations: 8 kB / 0.7651 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.006841, allocations: 0 / 0.7651 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.006854, allocations: 3.938 kB / 0.7651 GB, free: 1.246 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.204e-05/0.006916, allocations: 11.98 kB / 0.7651 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-06/0.006918, allocations: 0.5 kB / 0.7651 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.133e-05/0.00695, allocations: 9.094 kB / 0.7651 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.006957, allocations: 4 kB / 0.7651 GB, free: 1.223 MB / 0.7136 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 5.884e-05/0.007016, allocations: 117.5 kB / 0.7652 GB, free: 1.098 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.007028, allocations: 8 kB / 0.7652 GB, free: 1.09 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.559e-05/0.007053, allocations: 25.02 kB / 0.7653 GB, free: 1.066 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.007055, allocations: 2.344 kB / 0.7653 GB, free: 1.066 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.007056, allocations: 0 / 0.7653 GB, free: 1.066 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.007059, allocations: 3.938 kB / 0.7653 GB, free: 1.062 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003353/0.007394, allocations: 101.7 kB / 0.7654 GB, free: 0.9453 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.007395, allocations: 0 / 0.7654 GB, free: 0.9453 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-05/0.007423, allocations: 11.98 kB / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.007425, allocations: 2.438 kB / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-06/0.007429, allocations: 0 / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.007429, allocations: 0 / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.00743, allocations: 0 / 0.7654 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.037e-05/0.007501, allocations: 80.97 kB / 0.7654 GB, free: 0.8359 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.064e-05/0.007511, allocations: 7.953 kB / 0.7655 GB, free: 0.8281 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.007524, allocations: 4 kB / 0.7655 GB, free: 0.8242 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.449e-05/0.007548, allocations: 9.891 kB / 0.7655 GB, free: 0.8164 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.129e-05/0.00758, allocations: 7.984 kB / 0.7655 GB, free: 0.8086 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.007598, allocations: 4 kB / 0.7655 GB, free: 0.8047 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.171e-05/0.00765, allocations: 77.98 kB / 0.7656 GB, free: 0.7266 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.00765, allocations: 1.531 kB / 0.7656 GB, free: 0.7266 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001189/0.007769, allocations: 23.95 kB / 0.7656 GB, free: 0.7031 MB / 0.7136 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.0001745/0.007943, allocations: 98.83 kB / 0.7657 GB, free: 0.6055 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.117e-05/0.008014, allocations: 20.78 kB / 0.7657 GB, free: 0.582 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.008018, allocations: 4 kB / 0.7657 GB, free: 0.5781 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.611e-05/0.008034, allocations: 11.3 kB / 0.7657 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.008188, allocations: 50.25 kB / 0.7658 GB, free: 0.5156 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000515/0.008703, allocations: 280.2 kB / 0.766 GB, free: 216 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.328e-05/0.008746, allocations: 71.33 kB / 0.7661 GB, free: 124 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.602e-05/0.008792, allocations: 14.67 kB / 0.7661 GB, free: 112 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.632e-05/0.008869, allocations: 71.36 kB / 0.7662 GB, free: 40 kB / 0.7136 GB Notification: Performance of SimCode: time 1.022e-06/0.00887, allocations: 0 / 0.7662 GB, free: 40 kB / 0.7136 GB Notification: Performance of Templates: time 0.003665/0.01253, allocations: 1.813 MB / 0.7679 GB, free: 14.37 MB / 0.7292 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.140905336942524]