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.001079/0.001079, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001445/0.002524, allocations: 449.7 kB / 10.37 MB, free: 328 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.001093/0.001093, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00132/0.002413, allocations: 459.6 kB / 11.71 MB, free: 2.457 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.9572/0.9572, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09004/1.047, allocations: 53.65 MB / 243.3 MB, free: 15.57 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.812/1.812, allocations: 378.2 MB / 0.6076 GB, free: 7.805 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4886/2.301, allocations: 123.3 MB / 0.728 GB, free: 5.801 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.242e-06/1.242e-06, allocations: 0 / 0.7293 GB, free: 4.539 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.731e-05/1.856e-05, allocations: 3.375 kB / 0.7293 GB, free: 4.535 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002135/0.002153, allocations: 1.751 MB / 0.731 GB, free: 2.797 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0007268/0.00288, allocations: 0.6138 MB / 0.7316 GB, free: 2.184 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.361e-05/0.002954, allocations: 4.562 kB / 0.7316 GB, free: 2.18 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.003063, allocations: 30.11 kB / 0.7316 GB, free: 2.152 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.003234, allocations: 64.38 kB / 0.7317 GB, free: 2.098 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001536/0.003387, allocations: 76.44 kB / 0.7318 GB, free: 2.023 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001675/0.003555, allocations: 142.2 kB / 0.7319 GB, free: 1.891 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.003674, allocations: 38.31 kB / 0.732 GB, free: 1.852 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.003859, allocations: 104.4 kB / 0.7321 GB, free: 1.75 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 9.227e-05/0.003951, allocations: 52.39 kB / 0.7321 GB, free: 1.699 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.369e-05/0.003975, allocations: 11.94 kB / 0.7321 GB, free: 1.688 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.767e-05/0.004062, allocations: 25.28 kB / 0.7321 GB, free: 1.664 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 6.187e-05/0.004124, allocations: 31.86 kB / 0.7322 GB, free: 1.633 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.46e-05/0.004159, allocations: 23.94 kB / 0.7322 GB, free: 1.609 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.004316, allocations: 120.6 kB / 0.7323 GB, free: 1.492 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.605e-05/0.004332, allocations: 0 / 0.7323 GB, free: 1.492 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.062e-06/0.004333, allocations: 4 kB / 0.7323 GB, free: 1.488 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.3e-05/0.004346, allocations: 0.5 kB / 0.7323 GB, free: 1.488 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.0004492/0.004795, allocations: 385.3 kB / 0.7327 GB, free: 1.09 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.935e-05/0.004825, allocations: 11.97 kB / 0.7327 GB, free: 1.078 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.004979, allocations: 102 kB / 0.7328 GB, free: 0.9609 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.005181, allocations: 191.3 kB / 0.733 GB, free: 0.75 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.126e-06/0.005189, allocations: 384 / 0.733 GB, free: 0.75 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.005201, allocations: 8.312 kB / 0.733 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.005355, allocations: 146.3 kB / 0.7331 GB, free: 0.5781 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.005361, allocations: 0 / 0.7331 GB, free: 0.5781 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.005372, allocations: 0 / 0.7331 GB, free: 0.5781 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.005377, allocations: 0.5625 kB / 0.7331 GB, free: 0.5781 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.474e-05/0.005402, allocations: 15.92 kB / 0.7331 GB, free: 0.5625 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000279/0.005681, allocations: 223.1 kB / 0.7333 GB, free: 336 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.857e-05/0.005719, allocations: 18.58 kB / 0.7334 GB, free: 308 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.479e-05/0.005734, allocations: 9.5 kB / 0.7334 GB, free: 296 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.005746, allocations: 0 / 0.7334 GB, free: 296 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001172/0.005863, allocations: 121.7 kB / 0.7335 GB, free: 144 kB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 7.01e-07/0.005864, allocations: 0 / 0.7335 GB, free: 144 kB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001033/0.005967, allocations: 49.62 kB / 0.7335 GB, free: 88 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/0.005993, allocations: 52.38 kB / 0.7336 GB, free: 24 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.006118, allocations: 213 kB / 0.7338 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.00613, allocations: 26.45 kB / 0.7338 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.105e-05/0.006171, allocations: 112.5 kB / 0.7339 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.006187, allocations: 8.484 kB / 0.7339 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.006219, allocations: 21.7 kB / 0.734 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.0063, allocations: 331.6 kB / 0.7343 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.382e-05/0.006314, allocations: 0 / 0.7343 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.597e-05/0.00635, allocations: 75.03 kB / 0.7343 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.412e-05/0.006384, allocations: 29.69 kB / 0.7344 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.006386, allocations: 0 / 0.7344 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.781e-05/0.006444, allocations: 51.34 kB / 0.7344 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.006459, allocations: 10.02 kB / 0.7344 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-06/0.006463, allocations: 0 / 0.7344 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/0.006471, allocations: 0 / 0.7344 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.756e-05/0.006539, allocations: 8 kB / 0.7344 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.006542, allocations: 0.6562 kB / 0.7344 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.477e-05/0.006576, allocations: 20.61 kB / 0.7345 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.006588, allocations: 4 kB / 0.7345 GB, free: 15.07 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.795e-05/0.006646, allocations: 113.7 kB / 0.7346 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.006659, allocations: 7.984 kB / 0.7346 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.465e-05/0.006683, allocations: 23.12 kB / 0.7346 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.006685, allocations: 7.938 kB / 0.7346 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.006686, allocations: 0 / 0.7346 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.006689, allocations: 0 / 0.7346 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.998e-05/0.006769, allocations: 109.7 kB / 0.7347 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.00677, allocations: 0 / 0.7347 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.989e-05/0.0068, allocations: 9.328 kB / 0.7347 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.109e-05/0.006811, allocations: 7.953 kB / 0.7347 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.006812, allocations: 0 / 0.7347 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.006817, allocations: 5.25 kB / 0.7347 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.006819, allocations: 3.938 kB / 0.7347 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.00682, allocations: 0 / 0.7347 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.174e-05/0.006891, allocations: 78.28 kB / 0.7348 GB, free: 14.67 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/0.006903, allocations: 0 / 0.7348 GB, free: 14.67 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.562e-05/0.006929, allocations: 4 kB / 0.7348 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.006956, allocations: 7.984 kB / 0.7348 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.006966, allocations: 7.25 kB / 0.7348 GB, free: 14.65 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.938e-05/0.007015, allocations: 69.62 kB / 0.7349 GB, free: 14.58 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.007015, allocations: 0 / 0.7349 GB, free: 14.58 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001139/0.007129, allocations: 23.95 kB / 0.7349 GB, free: 14.56 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.00019/0.007319, allocations: 112.1 kB / 0.735 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.274e-05/0.007402, allocations: 20.78 kB / 0.735 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.007409, allocations: 4 kB / 0.735 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.6e-05/0.007425, allocations: 8.859 kB / 0.7351 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.007581, allocations: 62.62 kB / 0.7351 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007389/0.00832, allocations: 273 kB / 0.7354 GB, free: 14.06 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.797e-05/0.008358, allocations: 75.33 kB / 0.7354 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.366e-05/0.008402, allocations: 23.03 kB / 0.7355 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.976e-05/0.008481, allocations: 83.22 kB / 0.7355 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of SimCode: time 8.52e-07/0.008482, allocations: 0 / 0.7355 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of Templates: time 0.003861/0.01234, allocations: 1.877 MB / 0.7374 GB, free: 12.12 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.886480566114187]