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.001208/0.001208, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001376/0.001376, allocations: 187.5 kB / 16.25 MB, free: 6.621 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.38/1.38, allocations: 222.9 MB / 239.9 MB, free: 4.566 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.308/2.308, allocations: 390.2 MB / 0.6643 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002206/0.002206, allocations: 59.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7411/0.7433, allocations: 140.4 MB / 0.9491 GB, free: 9.266 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00359/0.7469, allocations: 1.696 MB / 0.9507 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000865/0.7478, allocations: 0.5334 MB / 0.9513 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.748, allocations: 10.69 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.7482, allocations: 21.42 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.7485, allocations: 60.23 kB / 0.9514 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001709/0.7487, allocations: 51.88 kB / 0.9514 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.7489, allocations: 130.6 kB / 0.9515 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.7491, allocations: 58.39 kB / 0.9516 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.7492, allocations: 57.83 kB / 0.9516 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.7493, allocations: 63.97 kB / 0.9517 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.7494, allocations: 8.125 kB / 0.9517 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.939e-05/0.7494, allocations: 24.2 kB / 0.9517 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.748e-05/0.7495, allocations: 43.83 kB / 0.9518 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.739e-05/0.7496, allocations: 61.45 kB / 0.9518 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.7498, allocations: 139.1 kB / 0.952 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.7498, allocations: 4 kB / 0.952 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7498, allocations: 1.375 kB / 0.952 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.7498, allocations: 0 / 0.952 GB, free: 7.031 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.0005616/0.7504, allocations: 469.5 kB / 0.9524 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.7505, allocations: 10.19 kB / 0.9524 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.518e-05/0.7505, allocations: 21.31 kB / 0.9524 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.7508, allocations: 233.7 kB / 0.9527 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.7508, allocations: 2.594 kB / 0.9527 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.7508, allocations: 12.22 kB / 0.9527 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.7511, allocations: 109 kB / 0.9528 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.7511, allocations: 0 / 0.9528 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.7511, allocations: 5.469 kB / 0.9528 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.7511, allocations: 1.125 kB / 0.9528 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.7513, allocations: 60 kB / 0.9529 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005234/0.7519, allocations: 384.6 kB / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001271/0.752, allocations: 48.19 kB / 0.9533 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.7521, allocations: 30.05 kB / 0.9533 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.7522, allocations: 5.375 kB / 0.9533 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.7524, allocations: 90 kB / 0.9534 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.7524, allocations: 0 / 0.9534 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004171/0.7529, allocations: 135.9 kB / 0.9535 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.7529, allocations: 78.3 kB / 0.9536 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.7532, allocations: 255.6 kB / 0.9538 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.7532, allocations: 26.89 kB / 0.9539 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.475e-05/0.7533, allocations: 128.8 kB / 0.954 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.7533, allocations: 5.531 kB / 0.954 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.7533, allocations: 16.64 kB / 0.954 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.488e-05/0.7534, allocations: 331.4 kB / 0.9543 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.7535, allocations: 28.91 kB / 0.9543 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.7537, allocations: 51.12 kB / 0.9544 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.7539, allocations: 73.03 kB / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.7539, allocations: 0 / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002744/0.7542, allocations: 105.2 kB / 0.9546 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.7542, allocations: 5.469 kB / 0.9546 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.7542, allocations: 5.312 kB / 0.9546 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.7542, allocations: 4.906 kB / 0.9546 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.7543, allocations: 11.8 kB / 0.9546 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.7543, allocations: 5.047 kB / 0.9546 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.065e-05/0.7544, allocations: 11.69 kB / 0.9546 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.7545, allocations: 1.125 kB / 0.9546 GB, free: 4.633 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.723e-05/0.7546, allocations: 131.6 kB / 0.9547 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.7546, allocations: 20.61 kB / 0.9548 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.51e-05/0.7546, allocations: 18.62 kB / 0.9548 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.7546, allocations: 5 kB / 0.9548 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.7547, allocations: 0 / 0.9548 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.7547, allocations: 4.781 kB / 0.9548 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.7548, allocations: 215.5 kB / 0.955 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.7548, allocations: 0 / 0.955 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.726e-05/0.7549, allocations: 11.42 kB / 0.955 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.7549, allocations: 1.406 kB / 0.955 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.136e-06/0.7549, allocations: 0 / 0.955 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.7549, allocations: 5.219 kB / 0.955 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7549, allocations: 4 kB / 0.955 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.7552, allocations: 123.9 kB / 0.9551 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.7553, allocations: 85.36 kB / 0.9552 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.7553, allocations: 5.266 kB / 0.9552 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.058e-05/0.7554, allocations: 13.45 kB / 0.9552 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.727e-05/0.7554, allocations: 6.312 kB / 0.9552 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.7555, allocations: 8.594 kB / 0.9552 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001816/0.7556, allocations: 186.7 kB / 0.9554 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.42e-07/0.7556, allocations: 5.094 kB / 0.9554 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002358/0.7559, allocations: 24.94 kB / 0.9554 GB, free: 3.875 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.0002809/0.7562, allocations: 135.8 kB / 0.9556 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002964/0.7565, allocations: 52.5 kB / 0.9556 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7565, allocations: 0 / 0.9556 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.7566, allocations: 32.47 kB / 0.9557 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.757, allocations: 50.47 kB / 0.9557 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000623/0.7576, allocations: 314.1 kB / 0.956 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.7578, allocations: 0.7169 MB / 0.9567 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.37e-05/0.7579, allocations: 22.77 kB / 0.9567 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.758, allocations: 20.47 kB / 0.9567 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.758, allocations: 0 / 0.9567 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of Templates: time 0.004738/0.7627, allocations: 1.657 MB / 0.9584 GB, free: 1.883 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