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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002697/0.002697, allocations: 219.8 kB / 22.25 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.272/3.272, allocations: 0.505 GB / 0.8101 GB, free: 21.98 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002342/0.002342, allocations: 67.77 kB / 1.177 GB, free: 17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3676, allocations: 180.2 MB / 1.353 GB, free: 8.391 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003371/0.371, allocations: 1.677 MB / 1.354 GB, free: 6.703 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.3722, allocations: 0.6356 MB / 1.355 GB, free: 6.062 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.646e-05/0.3723, allocations: 7.938 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.3725, allocations: 23.73 kB / 1.355 GB, free: 6.031 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002694/0.3727, allocations: 63.73 kB / 1.355 GB, free: 5.969 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.3729, allocations: 71.84 kB / 1.355 GB, free: 5.898 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.3732, allocations: 139.5 kB / 1.355 GB, free: 5.762 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.3733, allocations: 41.88 kB / 1.355 GB, free: 5.719 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.3735, allocations: 63.72 kB / 1.355 GB, free: 5.656 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.3736, allocations: 67.67 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.3736, allocations: 8 kB / 1.356 GB, free: 5.582 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.1e-05/0.3737, allocations: 24 kB / 1.356 GB, free: 5.559 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.794e-05/0.3738, allocations: 47.83 kB / 1.356 GB, free: 5.512 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.738e-05/0.3739, allocations: 59.55 kB / 1.356 GB, free: 5.453 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.3741, allocations: 147.3 kB / 1.356 GB, free: 5.309 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3741, allocations: 0 / 1.356 GB, free: 5.309 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3741, allocations: 4 kB / 1.356 GB, free: 5.305 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.3741, allocations: 0 / 1.356 GB, free: 5.305 MB / 1.045 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.0006769/0.3748, allocations: 409.2 kB / 1.356 GB, free: 4.875 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.3749, allocations: 8.031 kB / 1.356 GB, free: 4.867 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.3749, allocations: 38.75 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.375, allocations: 28.78 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.3754, allocations: 190.1 kB / 1.356 GB, free: 4.582 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.821e-06/0.3754, allocations: 4.375 kB / 1.356 GB, free: 4.578 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.3754, allocations: 4.375 kB / 1.356 GB, free: 4.574 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.3757, allocations: 117.7 kB / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.3757, allocations: 0 / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3757, allocations: 0 / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3757, allocations: 0 / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002364/0.3759, allocations: 67.94 kB / 1.357 GB, free: 4.387 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006089/0.3765, allocations: 355.6 kB / 1.357 GB, free: 3.996 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.3767, allocations: 42.55 kB / 1.357 GB, free: 3.945 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3768, allocations: 28.91 kB / 1.357 GB, free: 3.914 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.3768, allocations: 0 / 1.357 GB, free: 3.914 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002364/0.3771, allocations: 101 kB / 1.357 GB, free: 3.797 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.3771, allocations: 0 / 1.357 GB, free: 3.797 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0004328/0.3775, allocations: 125.4 kB / 1.357 GB, free: 3.668 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/0.3776, allocations: 85.05 kB / 1.357 GB, free: 3.566 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.3778, allocations: 256.9 kB / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.3779, allocations: 25.7 kB / 1.358 GB, free: 3.273 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.041e-05/0.378, allocations: 124.1 kB / 1.358 GB, free: 3.148 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.378, allocations: 7.953 kB / 1.358 GB, free: 3.141 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.378, allocations: 17.7 kB / 1.358 GB, free: 3.117 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.3782, allocations: 330.8 kB / 1.358 GB, free: 2.785 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.3783, allocations: 27.97 kB / 1.358 GB, free: 2.758 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.3784, allocations: 51.34 kB / 1.358 GB, free: 2.695 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.3786, allocations: 66.56 kB / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3786, allocations: 0 / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002894/0.3789, allocations: 105.5 kB / 1.358 GB, free: 2.512 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.379, allocations: 12 kB / 1.358 GB, free: 2.5 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.379, allocations: 0 / 1.358 GB, free: 2.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.379, allocations: 7.875 kB / 1.358 GB, free: 2.492 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.3791, allocations: 15.92 kB / 1.358 GB, free: 2.477 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3791, allocations: 0 / 1.358 GB, free: 2.477 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.137e-05/0.3792, allocations: 15.92 kB / 1.358 GB, free: 2.461 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.3792, allocations: 4 kB / 1.358 GB, free: 2.457 MB / 1.045 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.0001225/0.3793, allocations: 129.8 kB / 1.359 GB, free: 2.32 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.3793, allocations: 23.86 kB / 1.359 GB, free: 2.297 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.3794, allocations: 25.27 kB / 1.359 GB, free: 2.27 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3794, allocations: 0 / 1.359 GB, free: 2.27 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3794, allocations: 0 / 1.359 GB, free: 2.27 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3794, allocations: 0 / 1.359 GB, free: 2.27 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.3796, allocations: 188.7 kB / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3796, allocations: 0 / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.482e-05/0.3797, allocations: 15.98 kB / 1.359 GB, free: 2.027 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3797, allocations: 0 / 1.359 GB, free: 2.027 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.3797, allocations: 3.938 kB / 1.359 GB, free: 2.023 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3797, allocations: 4 kB / 1.359 GB, free: 2.02 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3797, allocations: 0 / 1.359 GB, free: 2.02 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.38, allocations: 124.9 kB / 1.359 GB, free: 1.879 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/0.38, allocations: 11.91 kB / 1.359 GB, free: 1.867 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.38, allocations: 11.92 kB / 1.359 GB, free: 1.855 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.302e-05/0.3801, allocations: 8 kB / 1.359 GB, free: 1.848 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.3802, allocations: 3.984 kB / 1.359 GB, free: 1.844 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.3802, allocations: 12 kB / 1.359 GB, free: 1.832 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002043/0.3804, allocations: 188.5 kB / 1.359 GB, free: 1.645 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3804, allocations: 0 / 1.359 GB, free: 1.645 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002262/0.3806, allocations: 19.95 kB / 1.359 GB, free: 1.625 MB / 1.045 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.0007715/0.3814, allocations: 0.6994 MB / 1.36 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002845/0.3817, allocations: 59.88 kB / 1.36 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3817, allocations: 4 kB / 1.36 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.3818, allocations: 27.97 kB / 1.36 GB, free: 0.8125 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.3821, allocations: 42.2 kB / 1.36 GB, free: 0.7734 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.3845, allocations: 1.761 MB / 1.362 GB, free: 14.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.3849, allocations: 0.7236 MB / 1.362 GB, free: 14.16 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.944e-05/0.385, allocations: 16.34 kB / 1.362 GB, free: 14.15 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.185e-05/0.3851, allocations: 51.41 kB / 1.362 GB, free: 14.1 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/0.3851, allocations: 0 / 1.362 GB, free: 14.1 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03167/0.4167, allocations: 3.764 MB / 1.366 GB, free: 10.47 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.01, allocations: 12.94 kB / 1.366 GB, free: 10.47 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.84059860999696]