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.001632/0.001632, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001977/0.001977, allocations: 192.3 kB / 16.13 MB, free: 6.645 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.573/1.573, allocations: 222.9 MB / 239.8 MB, free: 4.527 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.465/2.465, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7752/0.7764, allocations: 140.4 MB / 0.9489 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.005232/0.7817, allocations: 1.692 MB / 0.9506 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001472/0.7832, allocations: 0.5411 MB / 0.9511 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002559/0.7835, allocations: 2.844 kB / 0.9511 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003602/0.7839, allocations: 27.66 kB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003987/0.7844, allocations: 57.06 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.7847, allocations: 55.72 kB / 0.9512 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.785, allocations: 121.6 kB / 0.9513 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.7852, allocations: 57.11 kB / 0.9514 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.7854, allocations: 45.66 kB / 0.9514 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.7856, allocations: 66.94 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.178e-05/0.7857, allocations: 6.125 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.204e-05/0.7858, allocations: 16.64 kB / 0.9515 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.7859, allocations: 44.14 kB / 0.9516 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.026e-05/0.786, allocations: 59.77 kB / 0.9516 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.7862, allocations: 135.6 kB / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.7862, allocations: 0 / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7862, allocations: 0 / 0.9518 GB, free: 7 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.884e-06/0.7862, allocations: 0 / 0.9518 GB, free: 7 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.0007024/0.7869, allocations: 474.7 kB / 0.9522 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.787, allocations: 8.406 kB / 0.9522 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.736e-05/0.7871, allocations: 22.16 kB / 0.9522 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.7873, allocations: 233.6 kB / 0.9525 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.7874, allocations: 6.938 kB / 0.9525 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.7874, allocations: 8.531 kB / 0.9525 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003113/0.7877, allocations: 109 kB / 0.9526 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.7877, allocations: 3.984 kB / 0.9526 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.804e-05/0.7878, allocations: 5.438 kB / 0.9526 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.7878, allocations: 1.469 kB / 0.9526 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.788, allocations: 66.88 kB / 0.9527 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006618/0.7887, allocations: 380.9 kB / 0.953 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.7889, allocations: 39.98 kB / 0.9531 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.789, allocations: 31.33 kB / 0.9531 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.789, allocations: 0 / 0.9531 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003533/0.7894, allocations: 98.19 kB / 0.9532 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.7894, allocations: 0 / 0.9532 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005253/0.7899, allocations: 124.5 kB / 0.9533 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.79, allocations: 77.11 kB / 0.9534 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.7903, allocations: 264.3 kB / 0.9536 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.7903, allocations: 26.8 kB / 0.9537 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.7904, allocations: 121.2 kB / 0.9538 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.7904, allocations: 8.719 kB / 0.9538 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.779e-05/0.7905, allocations: 25.89 kB / 0.9538 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.584e-05/0.7906, allocations: 327.9 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.7907, allocations: 24.19 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.7908, allocations: 47.28 kB / 0.9542 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.791, allocations: 72.19 kB / 0.9542 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.791, allocations: 0 / 0.9542 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002972/0.7913, allocations: 110 kB / 0.9544 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.7914, allocations: 5.656 kB / 0.9544 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.7914, allocations: 3.938 kB / 0.9544 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.7914, allocations: 5.031 kB / 0.9544 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.7915, allocations: 12.11 kB / 0.9544 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.7916, allocations: 1.125 kB / 0.9544 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.7917, allocations: 15.02 kB / 0.9544 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.7917, allocations: 6.375 kB / 0.9544 GB, free: 4.598 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 9.442e-05/0.7918, allocations: 136.1 kB / 0.9545 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.7918, allocations: 15.22 kB / 0.9545 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.785e-05/0.7919, allocations: 19.39 kB / 0.9546 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.7919, allocations: 5.031 kB / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.7919, allocations: 0 / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.7919, allocations: 1.312 kB / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.792, allocations: 223.7 kB / 0.9548 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.7921, allocations: 288 / 0.9548 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.7921, allocations: 10.55 kB / 0.9548 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.7922, allocations: 1.188 kB / 0.9548 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.7922, allocations: 4 kB / 0.9548 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.7922, allocations: 5.125 kB / 0.9548 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.7922, allocations: 0 / 0.9548 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.7925, allocations: 128 kB / 0.9549 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.424e-05/0.7925, allocations: 85.11 kB / 0.955 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.7925, allocations: 5.453 kB / 0.955 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.323e-05/0.7926, allocations: 17.52 kB / 0.955 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/0.7927, allocations: 6.594 kB / 0.955 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.7927, allocations: 3.906 kB / 0.955 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001737/0.7929, allocations: 188.5 kB / 0.9552 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.82e-07/0.7929, allocations: 0 / 0.9552 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002351/0.7931, allocations: 28.62 kB / 0.9552 GB, free: 3.832 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.0002596/0.7934, allocations: 125.1 kB / 0.9554 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002932/0.7937, allocations: 58.41 kB / 0.9554 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.7937, allocations: 0.9062 kB / 0.9554 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.7938, allocations: 28.09 kB / 0.9554 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.7942, allocations: 43.19 kB / 0.9555 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000614/0.7948, allocations: 314.8 kB / 0.9558 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.795, allocations: 0.7262 MB / 0.9565 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001026/0.7951, allocations: 12.39 kB / 0.9565 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.7952, allocations: 23.03 kB / 0.9565 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of SimCode: time 7.01e-07/0.7952, allocations: 0 / 0.9565 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of Templates: time 0.006279/0.8015, allocations: 1.615 MB / 0.9581 GB, free: 1.863 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