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) 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 10.1.1-maint.10.0.x/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_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.008621/0.008621, allocations: 97.94 kB / 15.73 MB, free: 6.008 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.001578/0.001578, allocations: 190.4 kB / 16.67 MB, free: 5.934 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.507/2.507, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 1.018 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9222/0.9234, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00305/0.9265, allocations: 1.64 MB / 1.168 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008662/0.9274, allocations: 0.5378 MB / 1.169 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.706e-05/0.9275, allocations: 3.938 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.9277, allocations: 31.78 kB / 1.169 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002645/0.928, allocations: 69.42 kB / 1.169 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001442/0.9281, allocations: 59.86 kB / 1.169 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.9284, allocations: 135.5 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.9285, allocations: 49.48 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.9287, allocations: 59.69 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.9288, allocations: 59.77 kB / 1.169 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.965e-05/0.9289, allocations: 8 kB / 1.169 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.573e-05/0.9289, allocations: 16 kB / 1.169 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.541e-05/0.929, allocations: 47.83 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.53e-05/0.9291, allocations: 59.59 kB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002257/0.9294, allocations: 147.8 kB / 1.169 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.9294, allocations: 0 / 1.169 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9294, allocations: 7.938 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.9294, allocations: 4 kB / 1.169 GB, free: 0.8789 MB / 0.8887 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.0006389/0.93, allocations: 462.5 kB / 1.17 GB, free: 388 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.9301, allocations: 12.92 kB / 1.17 GB, free: 376 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.9301, allocations: 24.8 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.9304, allocations: 248.8 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.9305, allocations: 8.375 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.9305, allocations: 4.375 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.9308, allocations: 113.9 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.9308, allocations: 0 / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.9308, allocations: 11.98 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.9308, allocations: 0 / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.9311, allocations: 67.88 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006408/0.9317, allocations: 372.7 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.9319, allocations: 42.48 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.932, allocations: 32.91 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.932, allocations: 4 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/0.9322, allocations: 97.03 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.9322, allocations: 0 / 1.171 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.0004424/0.9327, allocations: 133.4 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.9328, allocations: 77.11 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002435/0.933, allocations: 249 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.933, allocations: 29.69 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.167e-05/0.9331, allocations: 132 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.9331, allocations: 7.953 kB / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.9332, allocations: 9.719 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.9333, allocations: 342.8 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.9334, allocations: 23.97 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.9335, allocations: 47.41 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.9338, allocations: 70.5 kB / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.9338, allocations: 0 / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002675/0.934, allocations: 101.5 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.9341, allocations: 8 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.9341, allocations: 4.094 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.9341, allocations: 3.938 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.9343, allocations: 11.98 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.9343, allocations: 0 / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.482e-05/0.9344, allocations: 19.88 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.9344, allocations: 4 kB / 1.172 GB, free: 13.91 MB / 0.9044 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.913e-05/0.9345, allocations: 129.8 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.9345, allocations: 15.91 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.857e-05/0.9346, allocations: 29.17 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.9346, allocations: 7.875 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.9346, allocations: 0 / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.9346, allocations: 0 / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.9348, allocations: 213.6 kB / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.9348, allocations: 0 / 1.172 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.615e-05/0.9349, allocations: 12.27 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.9349, allocations: 0 / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.9349, allocations: 3.984 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.9349, allocations: 3.938 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.9349, allocations: 4 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000274/0.9352, allocations: 128.9 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.994e-05/0.9352, allocations: 89.02 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.9353, allocations: 0 / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-05/0.9354, allocations: 15.92 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.9354, allocations: 7.984 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.9354, allocations: 4 kB / 1.173 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001605/0.9356, allocations: 196.4 kB / 1.173 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9356, allocations: 0 / 1.173 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002151/0.9358, allocations: 20 kB / 1.173 GB, free: 12.94 MB / 0.9044 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.0002214/0.9361, allocations: 135.4 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002765/0.9363, allocations: 47.95 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.9364, allocations: 0 / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.9365, allocations: 31.91 kB / 1.173 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.9368, allocations: 39.94 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005668/0.9374, allocations: 283.8 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.9377, allocations: 0.7158 MB / 1.174 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.753e-05/0.9378, allocations: 16.55 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.701e-05/0.9378, allocations: 23.36 kB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of SimCode: time 2.81e-07/0.9378, allocations: 4 kB / 1.174 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of Templates: time 0.004758/0.9426, allocations: 1.772 MB / 1.176 GB, free: 9.859 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) 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) Reference file matches