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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.336/2.336, allocations: 387.4 MB / 394.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 176.8 kB / 487.4 MB, free: 5.039 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 221.5 MB / 0.7824 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000975/0.0009755, allocations: 95.84 kB / 0.9219 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.973e-05/1.975e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2907, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9793/1.27, allocations: 150.5 MB / 1.353 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/1.27, allocations: 81.92 kB / 1.353 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009718/1.28, allocations: 3.306 MB / 1.356 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.302e-06/1.28, allocations: 0 / 1.356 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.656e-05/1.28, allocations: 7.906 kB / 1.356 GB, free: 34.02 MB / 0.8386 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.0004668/1.281, allocations: 436.9 kB / 1.357 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/1.281, allocations: 7.688 kB / 1.357 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/1.281, allocations: 15.5 kB / 1.357 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/1.281, allocations: 244.7 kB / 1.357 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/1.281, allocations: 3.844 kB / 1.357 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/1.281, allocations: 3.844 kB / 1.357 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.479e-05/1.281, allocations: 26.11 kB / 1.357 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/1.281, allocations: 76.19 kB / 1.357 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/1.281, allocations: 0 / 1.357 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/1.281, allocations: 0 / 1.357 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/1.281, allocations: 3.812 kB / 1.357 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000496/1.282, allocations: 358.1 kB / 1.357 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.491e-05/1.282, allocations: 25.64 kB / 1.357 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.529e-05/1.282, allocations: 12.67 kB / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/1.282, allocations: 4 kB / 1.357 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001082/1.282, allocations: 85.2 kB / 1.358 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/1.282, allocations: 0 / 1.358 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001518/1.282, allocations: 59.16 kB / 1.358 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/1.282, allocations: 84.23 kB / 1.358 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/1.282, allocations: 193.8 kB / 1.358 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/1.282, allocations: 25.7 kB / 1.358 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.803e-05/1.282, allocations: 136.3 kB / 1.358 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/1.283, allocations: 7.844 kB / 1.358 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/1.283, allocations: 0 / 1.358 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001296/1.283, allocations: 327.7 kB / 1.358 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.053e-05/1.283, allocations: 11.31 kB / 1.358 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.055e-05/1.283, allocations: 29.27 kB / 1.358 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.703e-05/1.283, allocations: 16.28 kB / 1.358 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/1.283, allocations: 0 / 1.358 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.596e-05/1.283, allocations: 63.28 kB / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/1.283, allocations: 7.844 kB / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/1.283, allocations: 6.953 kB / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/1.283, allocations: 3.953 kB / 1.358 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/1.283, allocations: 18.17 kB / 1.358 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/1.283, allocations: 0 / 1.358 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.561e-05/1.283, allocations: 18.25 kB / 1.358 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/1.283, allocations: 2.484 kB / 1.358 GB, free: 32.24 MB / 0.8386 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 () * 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.299e-05/1.283, allocations: 112.7 kB / 1.359 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.744e-05/1.283, allocations: 58.59 kB / 1.359 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/1.283, allocations: 22.22 kB / 1.359 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.578e-05/1.283, allocations: 23.23 kB / 1.359 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/1.283, allocations: 0 / 1.359 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/1.283, allocations: 3.844 kB / 1.359 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/1.283, allocations: 0 / 1.359 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/1.284, allocations: 188.4 kB / 1.359 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/1.284, allocations: 0 / 1.359 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.816e-05/1.284, allocations: 14.86 kB / 1.359 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/1.284, allocations: 0 / 1.359 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/1.284, allocations: 0 / 1.359 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/1.284, allocations: 3.953 kB / 1.359 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.284, allocations: 4 kB / 1.359 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.059e-05/1.284, allocations: 96.02 kB / 1.359 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.505e-05/1.284, allocations: 95.05 kB / 1.359 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/1.284, allocations: 0 / 1.359 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.457e-05/1.284, allocations: 17.16 kB / 1.359 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/1.284, allocations: 11.09 kB / 1.359 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/1.284, allocations: 3.844 kB / 1.359 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001175/1.284, allocations: 162.1 kB / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.284, allocations: 0 / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002071/1.284, allocations: 23.25 kB / 1.359 GB, free: 31.62 MB / 0.8386 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 () * 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.0004714/1.285, allocations: 0.6541 MB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.257e-05/1.285, allocations: 21.73 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.285, allocations: 7.781 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.537e-05/1.285, allocations: 11.59 kB / 1.36 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/1.285, allocations: 34.97 kB / 1.36 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004221/1.286, allocations: 235.5 kB / 1.36 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/1.286, allocations: 0.7208 MB / 1.361 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.598e-05/1.286, allocations: 16.72 kB / 1.361 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/1.286, allocations: 45.64 kB / 1.361 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.286, allocations: 0 / 1.361 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/1.308, allocations: 2.715 MB / 1.364 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/1.308, allocations: 138.5 kB / 1.364 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/3.022, allocations: 0 / 1.364 GB, free: 29.73 MB / 0.8386 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat does not exist to compare? outputFormat=mat