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.001123/0.001123, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001662/0.002786, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007033/0.0007033, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008851/0.001588, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9528/0.9528, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08603/1.039, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.83/1.83, allocations: 378.4 MB / 0.6079 GB, free: 7.699 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4708/2.301, allocations: 123.3 MB / 0.7283 GB, free: 5.73 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 0.7296 GB, free: 4.449 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.246e-05/1.397e-05, allocations: 7.344 kB / 0.7296 GB, free: 4.441 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001937/0.001951, allocations: 1.758 MB / 0.7313 GB, free: 2.707 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0009918/0.002943, allocations: 0.6189 MB / 0.7319 GB, free: 2.09 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.846e-05/0.003011, allocations: 7.938 kB / 0.732 GB, free: 2.082 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 9.814e-05/0.003109, allocations: 21.05 kB / 0.732 GB, free: 2.062 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001589/0.003268, allocations: 73.02 kB / 0.732 GB, free: 2 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001347/0.003403, allocations: 75.77 kB / 0.7321 GB, free: 1.926 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.003552, allocations: 135 kB / 0.7322 GB, free: 1.809 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.003664, allocations: 39.22 kB / 0.7323 GB, free: 1.766 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.003829, allocations: 104.4 kB / 0.7324 GB, free: 1.664 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.65e-05/0.003916, allocations: 52.41 kB / 0.7324 GB, free: 1.613 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.003936, allocations: 4 kB / 0.7324 GB, free: 1.609 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.004003, allocations: 24.94 kB / 0.7325 GB, free: 1.586 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.004069, allocations: 39.86 kB / 0.7325 GB, free: 1.547 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.286e-05/0.004102, allocations: 28.75 kB / 0.7325 GB, free: 1.52 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.004254, allocations: 115.5 kB / 0.7326 GB, free: 1.406 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.111e-05/0.004265, allocations: 1.438 kB / 0.7326 GB, free: 1.406 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.41e-07/0.004266, allocations: 0 / 0.7326 GB, free: 1.406 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.004275, allocations: 0 / 0.7326 GB, free: 1.406 MB / 0.698 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.0004191/0.004694, allocations: 388.3 kB / 0.733 GB, free: 1.004 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.771e-05/0.004722, allocations: 12.03 kB / 0.733 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.004858, allocations: 96.09 kB / 0.7331 GB, free: 0.8828 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001842/0.005042, allocations: 193.3 kB / 0.7333 GB, free: 0.668 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.005051, allocations: 5.594 kB / 0.7333 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.005064, allocations: 8.375 kB / 0.7333 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.005201, allocations: 140.9 kB / 0.7334 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.052e-06/0.005207, allocations: 0.875 kB / 0.7334 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.005215, allocations: 4 kB / 0.7334 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.00522, allocations: 4.875 kB / 0.7334 GB, free: 500 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.132e-05/0.005242, allocations: 11.94 kB / 0.7335 GB, free: 488 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002692/0.005511, allocations: 214.3 kB / 0.7337 GB, free: 256 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.635e-05/0.005547, allocations: 24.14 kB / 0.7337 GB, free: 224 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.43e-05/0.005561, allocations: 8.922 kB / 0.7337 GB, free: 212 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.005573, allocations: 0 / 0.7337 GB, free: 212 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.762e-05/0.005671, allocations: 120.5 kB / 0.7338 GB, free: 60 kB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 6.22e-07/0.005671, allocations: 5.156 kB / 0.7338 GB, free: 56 kB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.000109/0.00578, allocations: 53.66 kB / 0.7339 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.023e-05/0.005801, allocations: 51.41 kB / 0.7339 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.005911, allocations: 210.3 kB / 0.7341 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.005921, allocations: 25.7 kB / 0.7341 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.069e-05/0.005962, allocations: 116.5 kB / 0.7343 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.005978, allocations: 7.938 kB / 0.7343 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.472e-05/0.006003, allocations: 14.75 kB / 0.7343 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.908e-05/0.006072, allocations: 330.7 kB / 0.7346 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-06/0.006081, allocations: 4 kB / 0.7346 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.446e-05/0.006115, allocations: 82.61 kB / 0.7347 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.966e-05/0.006145, allocations: 30.09 kB / 0.7347 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.006148, allocations: 4 kB / 0.7347 GB, free: 15.06 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.181e-05/0.0062, allocations: 46.31 kB / 0.7347 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.006211, allocations: 7.125 kB / 0.7348 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.006214, allocations: 5.781 kB / 0.7348 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.558e-06/0.006224, allocations: 0 / 0.7348 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.247e-05/0.006286, allocations: 7.984 kB / 0.7348 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.006289, allocations: 4 kB / 0.7348 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.17e-05/0.006321, allocations: 13.09 kB / 0.7348 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.006332, allocations: 0 / 0.7348 GB, free: 14.98 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 5.394e-05/0.006386, allocations: 120.9 kB / 0.7349 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.006397, allocations: 8.75 kB / 0.7349 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.789e-05/0.006425, allocations: 21 kB / 0.7349 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.006426, allocations: 0.8125 kB / 0.7349 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.006428, allocations: 0 / 0.7349 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.00643, allocations: 0.6562 kB / 0.7349 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.11e-05/0.006501, allocations: 101.7 kB / 0.735 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.006502, allocations: 1.938 kB / 0.735 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.446e-05/0.006527, allocations: 11.98 kB / 0.735 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.977e-06/0.006536, allocations: 7.953 kB / 0.735 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.006537, allocations: 0 / 0.735 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.018e-06/0.006541, allocations: 0 / 0.735 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.006541, allocations: 0.9375 kB / 0.735 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.006542, allocations: 0 / 0.735 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.313e-05/0.006605, allocations: 86.06 kB / 0.7351 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.006616, allocations: 3.938 kB / 0.7351 GB, free: 14.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.363e-05/0.00664, allocations: 7.984 kB / 0.7351 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.63e-05/0.006666, allocations: 6.125 kB / 0.7351 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.006675, allocations: 7.984 kB / 0.7352 GB, free: 14.56 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.888e-05/0.006724, allocations: 62.27 kB / 0.7352 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006724, allocations: 0 / 0.7352 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000114/0.006838, allocations: 27.94 kB / 0.7352 GB, free: 14.47 MB / 0.7136 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.0001868/0.007025, allocations: 102.4 kB / 0.7353 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.366e-05/0.007109, allocations: 22.31 kB / 0.7354 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.007115, allocations: 4 kB / 0.7354 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.142e-05/0.007136, allocations: 12.84 kB / 0.7354 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.007328, allocations: 207.4 kB / 0.7356 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000674/0.008002, allocations: 274 kB / 0.7358 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.492e-05/0.008037, allocations: 75.27 kB / 0.7359 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.679e-05/0.008073, allocations: 20.41 kB / 0.7359 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.767e-05/0.008151, allocations: 76 kB / 0.736 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of SimCode: time 5.61e-07/0.008152, allocations: 0.6562 kB / 0.736 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of Templates: time 0.003316/0.01147, allocations: 1.886 MB / 0.7378 GB, free: 11.87 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.626440819352865]