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.001701/0.001701, allocations: 80.67 kB / 19.18 MB, free: 2.527 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.002128/0.002128, allocations: 166.9 kB / 22.46 MB, free: 5.355 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.466/1.466, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.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 2.965/2.965, allocations: 389 MB / 0.633 GB, free: 0.9883 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 1 GB, free: 7.285 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.592e-05, allocations: 2.281 kB / 1 GB, free: 7.281 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003145/0.003171, allocations: 1.655 MB / 1.002 GB, free: 5.621 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00125/0.004421, allocations: 0.5844 MB / 1.002 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.004524, allocations: 4 kB / 1.002 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.004698, allocations: 19.73 kB / 1.002 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.004999, allocations: 71.61 kB / 1.002 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.005267, allocations: 71.78 kB / 1.002 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.005522, allocations: 135.5 kB / 1.003 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.005673, allocations: 33.66 kB / 1.003 GB, free: 4.695 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.005897, allocations: 83.73 kB / 1.003 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.006015, allocations: 55.81 kB / 1.003 GB, free: 4.559 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.00605, allocations: 8 kB / 1.003 GB, free: 4.551 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.449e-05/0.006135, allocations: 27.92 kB / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.00624, allocations: 51.83 kB / 1.003 GB, free: 4.473 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.105e-05/0.006301, allocations: 31.86 kB / 1.003 GB, free: 4.441 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.006562, allocations: 147.5 kB / 1.003 GB, free: 4.297 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.006565, allocations: 4 kB / 1.003 GB, free: 4.293 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.42e-07/0.006566, allocations: 0 / 1.003 GB, free: 4.293 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.006577, allocations: 0 / 1.003 GB, free: 4.293 MB / 0.9512 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.0007/0.007277, allocations: 409.3 kB / 1.003 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.007311, allocations: 8.031 kB / 1.003 GB, free: 3.855 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.00749, allocations: 24.83 kB / 1.003 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003751/0.007865, allocations: 189.3 kB / 1.004 GB, free: 3.621 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.007876, allocations: 8.312 kB / 1.004 GB, free: 3.613 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.007895, allocations: 4.375 kB / 1.004 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003529/0.008248, allocations: 165.6 kB / 1.004 GB, free: 3.43 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.008257, allocations: 192 / 1.004 GB, free: 3.43 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.008273, allocations: 8.312 kB / 1.004 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.008279, allocations: 3.938 kB / 1.004 GB, free: 3.418 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.008532, allocations: 67.92 kB / 1.004 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.009134, allocations: 300.3 kB / 1.004 GB, free: 3.027 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.009296, allocations: 42.55 kB / 1.004 GB, free: 2.977 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.009417, allocations: 32.89 kB / 1.004 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.009434, allocations: 0 / 1.004 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.009694, allocations: 140.5 kB / 1.004 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.009695, allocations: 0 / 1.004 GB, free: 2.773 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0004817/0.01018, allocations: 129.5 kB / 1.004 GB, free: 2.641 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.01023, allocations: 77.11 kB / 1.005 GB, free: 2.547 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.01051, allocations: 240.1 kB / 1.005 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.01053, allocations: 25.7 kB / 1.005 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.802e-05/0.01063, allocations: 132 kB / 1.005 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.01065, allocations: 11.89 kB / 1.005 GB, free: 2.129 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.0107, allocations: 17.72 kB / 1.005 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001754/0.01087, allocations: 334.8 kB / 1.005 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.01099, allocations: 19.98 kB / 1.005 GB, free: 1.75 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.01114, allocations: 73.11 kB / 1.005 GB, free: 1.66 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.01141, allocations: 78.45 kB / 1.005 GB, free: 1.574 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.01141, allocations: 0 / 1.005 GB, free: 1.574 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003153/0.01172, allocations: 105.5 kB / 1.006 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.01174, allocations: 4 kB / 1.006 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.01175, allocations: 0 / 1.006 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.01176, allocations: 4 kB / 1.006 GB, free: 1.457 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.01187, allocations: 15.92 kB / 1.006 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.01188, allocations: 0 / 1.006 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.404e-05/0.01197, allocations: 15.92 kB / 1.006 GB, free: 1.426 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.01198, allocations: 8.031 kB / 1.006 GB, free: 1.418 MB / 0.9512 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.0001254/0.01211, allocations: 129.8 kB / 1.006 GB, free: 1.281 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.472e-05/0.01214, allocations: 19.86 kB / 1.006 GB, free: 1.262 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.632e-05/0.01218, allocations: 17.02 kB / 1.006 GB, free: 1.242 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.01218, allocations: 288 / 1.006 GB, free: 1.242 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.01218, allocations: 0 / 1.006 GB, free: 1.242 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.01219, allocations: 0 / 1.006 GB, free: 1.242 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.01235, allocations: 149.2 kB / 1.006 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.01235, allocations: 11.97 kB / 1.006 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.432e-05/0.01244, allocations: 8 kB / 1.006 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/0.01245, allocations: 15.92 kB / 1.006 GB, free: 1.031 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.01245, allocations: 0 / 1.006 GB, free: 1.031 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.01246, allocations: 0 / 1.006 GB, free: 1.031 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01246, allocations: 0 / 1.006 GB, free: 1.031 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.01279, allocations: 124.9 kB / 1.006 GB, free: 0.8906 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 2.237e-05/0.01282, allocations: 11.91 kB / 1.006 GB, free: 0.8789 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.01284, allocations: 0 / 1.006 GB, free: 0.8789 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.01293, allocations: 11.98 kB / 1.006 GB, free: 0.8672 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/0.01297, allocations: 7.984 kB / 1.006 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.013, allocations: 8 kB / 1.006 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001771/0.01317, allocations: 173.8 kB / 1.006 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.01317, allocations: 0 / 1.006 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002425/0.01341, allocations: 27.89 kB / 1.006 GB, free: 0.6562 MB / 0.9512 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.0002565/0.01367, allocations: 118.7 kB / 1.006 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003037/0.01398, allocations: 63.81 kB / 1.006 GB, free: 484 kB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.01398, allocations: 0 / 1.006 GB, free: 484 kB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.0141, allocations: 23.97 kB / 1.006 GB, free: 460 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.01441, allocations: 38.7 kB / 1.007 GB, free: 420 kB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005751/0.01498, allocations: 290.8 kB / 1.007 GB, free: 104 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.01512, allocations: 106.2 kB / 1.007 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.22e-05/0.01519, allocations: 20.41 kB / 1.007 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.168e-05/0.01523, allocations: 16.5 kB / 1.007 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of SimCode: time 4.6e-07/0.01523, allocations: 0 / 1.007 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of Templates: time 0.005597/0.02083, allocations: 1.757 MB / 1.009 GB, free: 14.21 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 800] 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/jenkins/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: 8.306930165737867]