Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002028/0.002028, allocations: 188.5 kB / 22.22 MB, free: 5.102 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 225.6 MB / 251 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.539/2.539, allocations: 443.4 MB / 0.7321 GB, free: 12.3 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 67.88 kB / 1.061 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8329/0.8348, allocations: 160.8 MB / 1.218 GB, free: 3.746 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003425/0.8382, allocations: 1.662 MB / 1.22 GB, free: 2.453 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009999/0.8392, allocations: 0.5604 MB / 1.221 GB, free: 2.004 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.951e-05/0.8393, allocations: 7 kB / 1.221 GB, free: 2 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.8395, allocations: 26.98 kB / 1.221 GB, free: 1.977 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.8398, allocations: 63.28 kB / 1.221 GB, free: 1.93 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.8399, allocations: 68.39 kB / 1.221 GB, free: 1.879 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.8401, allocations: 141.6 kB / 1.221 GB, free: 1.793 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.8403, allocations: 37.69 kB / 1.221 GB, free: 1.766 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001288/0.8404, allocations: 54.97 kB / 1.221 GB, free: 1.734 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001281/0.8406, allocations: 67.28 kB / 1.221 GB, free: 1.688 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/0.8406, allocations: 9.188 kB / 1.221 GB, free: 1.688 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.581e-05/0.8407, allocations: 19.52 kB / 1.221 GB, free: 1.684 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.8408, allocations: 51.73 kB / 1.221 GB, free: 1.648 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.979e-05/0.8408, allocations: 56.92 kB / 1.221 GB, free: 1.605 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.8411, allocations: 154.8 kB / 1.221 GB, free: 1.5 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.8411, allocations: 0 / 1.221 GB, free: 1.5 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8411, allocations: 0 / 1.221 GB, free: 1.5 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.942e-06/0.8411, allocations: 0 / 1.221 GB, free: 1.5 MB / 0.92 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.0006984/0.8418, allocations: 476.4 kB / 1.222 GB, free: 1.039 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.8418, allocations: 9.062 kB / 1.222 GB, free: 1.039 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.139e-05/0.8419, allocations: 21.67 kB / 1.222 GB, free: 1.027 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.8423, allocations: 244.9 kB / 1.222 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.8423, allocations: 7.688 kB / 1.222 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.8423, allocations: 8.234 kB / 1.222 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.8426, allocations: 112 kB / 1.222 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.8426, allocations: 1.031 kB / 1.222 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.8426, allocations: 5.094 kB / 1.222 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.8426, allocations: 0.9688 kB / 1.222 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.8429, allocations: 63.41 kB / 1.222 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006304/0.8435, allocations: 376.1 kB / 1.223 GB, free: 304 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.8436, allocations: 44.31 kB / 1.223 GB, free: 264 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.8437, allocations: 34.7 kB / 1.223 GB, free: 240 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.8438, allocations: 0 / 1.223 GB, free: 240 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.844, allocations: 102.6 kB / 1.223 GB, free: 144 kB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.844, allocations: 0 / 1.223 GB, free: 144 kB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0004198/0.8444, allocations: 123.5 kB / 1.223 GB, free: 64 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.8445, allocations: 78.27 kB / 1.223 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.8448, allocations: 252.8 kB / 1.223 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.8448, allocations: 29.7 kB / 1.223 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.8449, allocations: 133.2 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.8449, allocations: 5.078 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.845, allocations: 21 kB / 1.223 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.8451, allocations: 324.3 kB / 1.224 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.8452, allocations: 25.28 kB / 1.224 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.8454, allocations: 50.41 kB / 1.224 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.8456, allocations: 75.73 kB / 1.224 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.8456, allocations: 1.25 kB / 1.224 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002674/0.8458, allocations: 105.6 kB / 1.224 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.8459, allocations: 5.344 kB / 1.224 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.8459, allocations: 8.625 kB / 1.224 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.8459, allocations: 4.812 kB / 1.224 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.846, allocations: 16.64 kB / 1.224 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.846, allocations: 1.094 kB / 1.224 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.609e-05/0.8461, allocations: 14.75 kB / 1.224 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.8461, allocations: 1.125 kB / 1.224 GB, free: 15.08 MB / 0.9356 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.0001253/0.8462, allocations: 139.9 kB / 1.224 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.8462, allocations: 16.5 kB / 1.224 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.8463, allocations: 18.89 kB / 1.224 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.8463, allocations: 5.219 kB / 1.224 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.8463, allocations: 0 / 1.224 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.8463, allocations: 1.375 kB / 1.224 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.8465, allocations: 215.1 kB / 1.224 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8465, allocations: 0 / 1.224 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.162e-05/0.8466, allocations: 11.14 kB / 1.224 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.8466, allocations: 1.062 kB / 1.224 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.8466, allocations: 4 kB / 1.224 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.8466, allocations: 5.125 kB / 1.224 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.8466, allocations: 0 / 1.224 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000285/0.8469, allocations: 132.4 kB / 1.225 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.934e-05/0.847, allocations: 89.39 kB / 1.225 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.847, allocations: 0 / 1.225 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.143e-05/0.8471, allocations: 18.48 kB / 1.225 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.8471, allocations: 6.156 kB / 1.225 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.8471, allocations: 7.422 kB / 1.225 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001908/0.8473, allocations: 183.9 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.8473, allocations: 1.188 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002225/0.8475, allocations: 21.45 kB / 1.225 GB, free: 14.32 MB / 0.9356 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.0002835/0.8478, allocations: 122.8 kB / 1.225 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002844/0.8481, allocations: 54.84 kB / 1.225 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.8481, allocations: 5.125 kB / 1.225 GB, free: 14.19 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.8482, allocations: 27.88 kB / 1.225 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.8485, allocations: 42.81 kB / 1.225 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005483/0.8491, allocations: 285.8 kB / 1.225 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.8494, allocations: 0.7209 MB / 1.226 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.617e-05/0.8495, allocations: 22.64 kB / 1.226 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.344e-05/0.8496, allocations: 18 kB / 1.226 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.8496, allocations: 0 / 1.226 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of Templates: time 0.005339/0.8549, allocations: 1.783 MB / 1.228 GB, free: 12.3 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.582170820795]