Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008561/0.0008562, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.00524/0.00524, allocations: 172.3 kB / 16.26 MB, free: 6.613 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.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.625/2.625, allocations: 462.6 MB / 0.7364 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003032/0.0003032, allocations: 12.31 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2636, allocations: 159.6 MB / 1.059 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001983/0.2656, allocations: 1.361 MB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008834/0.2665, allocations: 0.5377 MB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.254e-05/0.2666, allocations: 0 / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.2668, allocations: 27.86 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.2671, allocations: 68.42 kB / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001441/0.2672, allocations: 51.94 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001843/0.2674, allocations: 119.6 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.2676, allocations: 49.45 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.2677, allocations: 47.72 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.2679, allocations: 51.75 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.2679, allocations: 4 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.878e-05/0.268, allocations: 19.94 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.291e-05/0.2681, allocations: 35.89 kB / 1.061 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.092e-05/0.2682, allocations: 73.31 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.2684, allocations: 143.6 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.2684, allocations: 3.938 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.645e-06/0.2684, allocations: 4 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.678e-06/0.2684, allocations: 0 / 1.061 GB, free: 2.312 MB / 0.8106 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.0006542/0.2691, allocations: 438.9 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.2691, allocations: 15.97 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.508e-05/0.2692, allocations: 34.75 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.596e-05/0.2692, allocations: 16.75 kB / 1.062 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.2695, allocations: 248.7 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.2696, allocations: 384 / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.463e-05/0.2696, allocations: 4.375 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003199/0.2699, allocations: 126.6 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2699, allocations: 0 / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.2699, allocations: 3.938 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.27, allocations: 0 / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002519/0.2702, allocations: 83.94 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.2708, allocations: 388.4 kB / 1.063 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.271, allocations: 58.48 kB / 1.063 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.2712, allocations: 36.91 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.2712, allocations: 3.984 kB / 1.063 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/0.2715, allocations: 101.1 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.2715, allocations: 0 / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004713/0.272, allocations: 149.3 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.272, allocations: 81.11 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.2723, allocations: 253 kB / 1.063 GB, free: 104 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.2723, allocations: 25.7 kB / 1.063 GB, free: 72 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.993e-05/0.2724, allocations: 128 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.2724, allocations: 15.84 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.2724, allocations: 17.7 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.2725, allocations: 326.8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.2727, allocations: 27.97 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.2728, allocations: 55.41 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.2731, allocations: 86.5 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2731, allocations: 0 / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002976/0.2734, allocations: 121.4 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.2734, allocations: 5.406 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2734, allocations: 0 / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2734, allocations: 7.938 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.2736, allocations: 16.08 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.2736, allocations: 4 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.132e-05/0.2737, allocations: 15.89 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.2737, allocations: 4 kB / 1.064 GB, free: 15.21 MB / 0.8262 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 0.0001004/0.2738, allocations: 126.1 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.2738, allocations: 15.81 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.852e-05/0.2739, allocations: 29.16 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2739, allocations: 4 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2739, allocations: 0 / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.2739, allocations: 3.938 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.2741, allocations: 221.5 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2741, allocations: 0 / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.234e-05/0.2741, allocations: 19.92 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2742, allocations: 0 / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.2742, allocations: 7.922 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2742, allocations: 0 / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2742, allocations: 4 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.2745, allocations: 128.9 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.2745, allocations: 100.9 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.2746, allocations: 7.938 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.943e-05/0.2747, allocations: 11.98 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.2747, allocations: 4 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.2747, allocations: 7.984 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001586/0.2749, allocations: 188.5 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2749, allocations: 0 / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002129/0.2751, allocations: 23.91 kB / 1.065 GB, free: 14.23 MB / 0.8262 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.0006279/0.2758, allocations: 0.6964 MB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002848/0.2761, allocations: 79.83 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2761, allocations: 0 / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.2762, allocations: 36.16 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2765, allocations: 37.94 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.2785, allocations: 1.815 MB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.2788, allocations: 0.7279 MB / 1.068 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.088e-05/0.2788, allocations: 12.55 kB / 1.068 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.919e-05/0.2789, allocations: 43.42 kB / 1.068 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2789, allocations: 7.938 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01593/0.2949, allocations: 3.217 MB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.2951, allocations: 214.4 kB / 1.072 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/2.124, allocations: 2.953 kB / 1.072 GB, free: 7.289 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches