Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001793/0.001793, 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.002221/0.002221, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.503/1.503, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.163/3.163, allocations: 0.49 GB / 0.7951 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_12_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.002127/0.002127, allocations: 70.64 kB / 1.154 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3571, allocations: 176.1 MB / 1.326 GB, free: 1.969 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003283/0.3604, allocations: 1.682 MB / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.3616, allocations: 0.6273 MB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.3617, allocations: 7.938 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.3618, allocations: 23.78 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002658/0.3621, allocations: 64.42 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.3623, allocations: 79.84 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.3625, allocations: 139.5 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.3627, allocations: 33.89 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.3628, allocations: 63.77 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.363, allocations: 63.64 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.631e-05/0.363, allocations: 8 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.74e-05/0.3631, allocations: 35.97 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.013e-05/0.3631, allocations: 43.84 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.841e-05/0.3632, allocations: 59.59 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.3634, allocations: 151.2 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3635, allocations: 4 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3635, allocations: 0 / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.3635, allocations: 0 / 1.329 GB, free: 14.88 MB / 1.029 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.00063/0.3641, allocations: 401.3 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.3641, allocations: 8.031 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.762e-05/0.3642, allocations: 42.73 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.3643, allocations: 24.78 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.3647, allocations: 193.8 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.3647, allocations: 8.375 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.3647, allocations: 4.375 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.365, allocations: 116.4 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.365, allocations: 0 / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.365, allocations: 0 / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.365, allocations: 8 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002351/0.3653, allocations: 71.88 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.3659, allocations: 343.7 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.3661, allocations: 46.5 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.3662, allocations: 24.89 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.3662, allocations: 4 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.3664, allocations: 101 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.3664, allocations: 3.938 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004388/0.3669, allocations: 125.4 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.3669, allocations: 81.09 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.3672, allocations: 257 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.3672, allocations: 25.7 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.832e-05/0.3673, allocations: 128.1 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.3674, allocations: 11.95 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.984e-05/0.3674, allocations: 13.72 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3675, allocations: 330.8 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.3677, allocations: 27.97 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.3678, allocations: 43.42 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.368, allocations: 74.48 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.368, allocations: 3.938 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002912/0.3683, allocations: 105.5 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3683, allocations: 8 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3683, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3683, allocations: 3.938 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.3684, allocations: 11.98 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3684, allocations: 0 / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.241e-05/0.3685, allocations: 19.92 kB / 1.331 GB, free: 12.03 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.3686, allocations: 4 kB / 1.331 GB, free: 12.03 MB / 1.029 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.0001179/0.3687, allocations: 126.4 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.295e-05/0.3687, allocations: 15.91 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.794e-05/0.3688, allocations: 29.27 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.3688, allocations: 3.938 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3688, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3688, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.3689, allocations: 192.6 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.3689, allocations: 0 / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.325e-05/0.369, allocations: 11.98 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.369, allocations: 4 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.369, allocations: 7.922 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.369, allocations: 0 / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.369, allocations: 0 / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.3693, allocations: 117 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.808e-05/0.3694, allocations: 15.91 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.3694, allocations: 11.94 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.3695, allocations: 7.984 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.3695, allocations: 7.984 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.057e-05/0.3695, allocations: 8 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000195/0.3697, allocations: 196.4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3697, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002207/0.37, allocations: 23.89 kB / 1.332 GB, free: 11.19 MB / 1.029 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.0007172/0.3707, allocations: 0.6913 MB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002904/0.371, allocations: 71.75 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.371, allocations: 0 / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.3711, allocations: 27.97 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.3714, allocations: 42.42 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.3737, allocations: 1.753 MB / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.3741, allocations: 0.7197 MB / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.038e-05/0.3741, allocations: 20.34 kB / 1.335 GB, free: 7.727 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.565e-05/0.3742, allocations: 39.42 kB / 1.335 GB, free: 7.688 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3742, allocations: 0 / 1.335 GB, free: 7.688 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04438/0.4186, allocations: 3.768 MB / 1.339 GB, free: 4.078 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.16, allocations: 6.422 kB / 1.339 GB, free: 4.074 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.877512514125556]