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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009516/0.0009516, allocations: 92 kB / 15.06 MB, free: 1.098 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.001089/0.001089, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 223.3 MB / 240 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.449/2.449, allocations: 390.9 MB / 0.666 GB, free: 2.543 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003827, allocations: 8 kB / 0.8154 GB, free: 13.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6913/0.6917, allocations: 142.4 MB / 0.9544 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001691/0.6935, allocations: 1.325 MB / 0.9557 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006608/0.6942, allocations: 0.5092 MB / 0.9562 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.295e-05/0.6942, allocations: 2.406 kB / 0.9562 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.6944, allocations: 28.66 kB / 0.9563 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002013/0.6946, allocations: 52.98 kB / 0.9563 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001199/0.6947, allocations: 51.8 kB / 0.9564 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.6949, allocations: 116.4 kB / 0.9565 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.695, allocations: 51.8 kB / 0.9565 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.732e-05/0.6951, allocations: 42.8 kB / 0.9566 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.745e-05/0.6952, allocations: 54.03 kB / 0.9566 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.6953, allocations: 2.375 kB / 0.9566 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.921e-05/0.6953, allocations: 17.75 kB / 0.9566 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.964e-05/0.6954, allocations: 38.98 kB / 0.9567 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.6954, allocations: 48.08 kB / 0.9567 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.6956, allocations: 91.95 kB / 0.9568 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.6956, allocations: 0 / 0.9568 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.824e-06/0.6956, allocations: 0 / 0.9568 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.6956, allocations: 1 kB / 0.9568 GB, free: 5.938 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.0004731/0.6961, allocations: 461.1 kB / 0.9572 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.6961, allocations: 13.12 kB / 0.9573 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.721e-05/0.6962, allocations: 19.98 kB / 0.9573 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.6964, allocations: 225.2 kB / 0.9575 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.6964, allocations: 6.594 kB / 0.9575 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.6964, allocations: 8.281 kB / 0.9575 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.6967, allocations: 114.4 kB / 0.9576 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.6967, allocations: 0 / 0.9576 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.6967, allocations: 9.156 kB / 0.9576 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.6967, allocations: 2.688 kB / 0.9576 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002078/0.6969, allocations: 76.7 kB / 0.9577 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004773/0.6974, allocations: 395.8 kB / 0.9581 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.6976, allocations: 50.59 kB / 0.9581 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.6977, allocations: 36.36 kB / 0.9582 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.6977, allocations: 1.625 kB / 0.9582 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.6979, allocations: 107.3 kB / 0.9583 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.698, allocations: 0.9688 kB / 0.9583 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003927/0.6983, allocations: 139.9 kB / 0.9584 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.6984, allocations: 77.11 kB / 0.9585 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.6986, allocations: 259.7 kB / 0.9587 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.6986, allocations: 29.7 kB / 0.9587 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.508e-05/0.6987, allocations: 125.3 kB / 0.9589 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.456e-05/0.6987, allocations: 8.953 kB / 0.9589 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-06/0.6987, allocations: 1.094 kB / 0.9589 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.541e-05/0.6988, allocations: 326.4 kB / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.6989, allocations: 40.41 kB / 0.9592 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.699, allocations: 58.31 kB / 0.9593 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.6991, allocations: 42.06 kB / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6991, allocations: 0 / 0.9593 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002474/0.6994, allocations: 119.4 kB / 0.9594 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.6994, allocations: 4.812 kB / 0.9594 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.6994, allocations: 1.531 kB / 0.9594 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.6994, allocations: 0 / 0.9594 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.6995, allocations: 23.08 kB / 0.9595 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.6996, allocations: 5.359 kB / 0.9595 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.379e-05/0.6996, allocations: 22.91 kB / 0.9595 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.6997, allocations: 5.359 kB / 0.9595 GB, free: 3.578 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.438e-05/0.6998, allocations: 132.7 kB / 0.9596 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.6998, allocations: 20.05 kB / 0.9596 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.6998, allocations: 14.75 kB / 0.9597 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.6998, allocations: 1.375 kB / 0.9597 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.6998, allocations: 0 / 0.9597 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.6998, allocations: 0 / 0.9597 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.7, allocations: 219.7 kB / 0.9599 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.7, allocations: 5.328 kB / 0.9599 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.877e-05/0.7001, allocations: 13.61 kB / 0.9599 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.7001, allocations: 1.375 kB / 0.9599 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.7001, allocations: 0 / 0.9599 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.7001, allocations: 1.375 kB / 0.9599 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.7001, allocations: 0 / 0.9599 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.7004, allocations: 133.1 kB / 0.96 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.7004, allocations: 102.4 kB / 0.9601 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.7004, allocations: 0 / 0.9601 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.43e-05/0.7005, allocations: 18.98 kB / 0.9601 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.7006, allocations: 13.3 kB / 0.9601 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.7006, allocations: 4.125 kB / 0.9601 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001474/0.7008, allocations: 186.2 kB / 0.9603 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7008, allocations: 0 / 0.9603 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002233/0.701, allocations: 25.78 kB / 0.9603 GB, free: 2.824 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000215/0.7012, allocations: 132.3 kB / 0.9605 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002723/0.7015, allocations: 69.39 kB / 0.9605 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.7015, allocations: 0 / 0.9605 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.7016, allocations: 39.28 kB / 0.9606 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.7019, allocations: 34.28 kB / 0.9606 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004897/0.7024, allocations: 320.1 kB / 0.9609 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.7026, allocations: 0.7126 MB / 0.9616 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.701e-05/0.7027, allocations: 26.39 kB / 0.9616 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.7027, allocations: 13.72 kB / 0.9616 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.7027, allocations: 0 / 0.9616 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of Templates: time 0.004096/0.7068, allocations: 1.556 MB / 0.9632 GB, free: 0.8828 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