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.00193/0.00193, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.002606/0.002606, allocations: 161.7 kB / 22.76 MB, free: 1.68 MB / 18.57 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.683/1.683, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 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 3.218/3.218, allocations: 429.6 MB / 0.673 GB, free: 3.891 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.904e-06/1.904e-06, allocations: 0 / 0.8776 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.915e-05/3.105e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003424/0.003455, allocations: 1.655 MB / 0.8792 GB, free: 4.852 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.004814, allocations: 0.5771 MB / 0.8797 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.004921, allocations: 7.938 kB / 0.8798 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.005126, allocations: 35.66 kB / 0.8798 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.000294/0.00542, allocations: 64.58 kB / 0.8799 GB, free: 4.168 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.005678, allocations: 79.77 kB / 0.8799 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.005922, allocations: 132.2 kB / 0.8801 GB, free: 3.961 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.006068, allocations: 38.3 kB / 0.8801 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.006294, allocations: 75.81 kB / 0.8802 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.006422, allocations: 53.28 kB / 0.8802 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.006455, allocations: 8 kB / 0.8802 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.987e-05/0.006545, allocations: 27.98 kB / 0.8802 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.006652, allocations: 45.12 kB / 0.8803 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.693e-05/0.006719, allocations: 35.84 kB / 0.8803 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.007, allocations: 151.4 kB / 0.8805 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.007003, allocations: 3.281 kB / 0.8805 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.32e-07/0.007004, allocations: 0 / 0.8805 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.007009, allocations: 0 / 0.8805 GB, free: 3.535 MB / 0.8386 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.0007153/0.007724, allocations: 405.2 kB / 0.8809 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.007762, allocations: 8.031 kB / 0.8809 GB, free: 3.102 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/0.007974, allocations: 28.83 kB / 0.8809 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.008347, allocations: 199.4 kB / 0.8811 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.008359, allocations: 384 / 0.8811 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.00838, allocations: 8.375 kB / 0.8811 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003594/0.008739, allocations: 176.4 kB / 0.8813 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.008748, allocations: 4.188 kB / 0.8813 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.008761, allocations: 384 / 0.8813 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.008769, allocations: 3.938 kB / 0.8813 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.009026, allocations: 63.94 kB / 0.8813 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006084/0.009634, allocations: 300.3 kB / 0.8816 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001619/0.009796, allocations: 42.56 kB / 0.8817 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.009914, allocations: 28.89 kB / 0.8817 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.009931, allocations: 0 / 0.8817 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.01022, allocations: 156.4 kB / 0.8818 GB, free: 2 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.01022, allocations: 0 / 0.8818 GB, free: 2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0004925/0.01072, allocations: 121.5 kB / 0.882 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.01079, allocations: 77.11 kB / 0.882 GB, free: 1.781 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.01108, allocations: 244 kB / 0.8823 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.01111, allocations: 29.7 kB / 0.8823 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.01123, allocations: 124.1 kB / 0.8824 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.01125, allocations: 19.81 kB / 0.8824 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.01129, allocations: 13.72 kB / 0.8824 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.01147, allocations: 330.8 kB / 0.8828 GB, free: 1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.01159, allocations: 31.97 kB / 0.8828 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.01175, allocations: 77.05 kB / 0.8829 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.01198, allocations: 62.53 kB / 0.8829 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01198, allocations: 0 / 0.8829 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003085/0.01229, allocations: 109.5 kB / 0.883 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.0123, allocations: 4 kB / 0.883 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.01231, allocations: 0 / 0.883 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.01233, allocations: 7.938 kB / 0.883 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.01244, allocations: 15.98 kB / 0.883 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.01245, allocations: 3.984 kB / 0.883 GB, free: 0.6602 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.295e-05/0.01254, allocations: 12.05 kB / 0.8831 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.01255, allocations: 7.938 kB / 0.8831 GB, free: 0.6406 MB / 0.8386 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.000135/0.01269, allocations: 125.8 kB / 0.8832 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.498e-05/0.01273, allocations: 23.89 kB / 0.8832 GB, free: 496 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.598e-05/0.01277, allocations: 13.03 kB / 0.8832 GB, free: 480 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.01277, allocations: 0 / 0.8832 GB, free: 480 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.01277, allocations: 0 / 0.8832 GB, free: 480 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.01278, allocations: 0 / 0.8832 GB, free: 480 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.01295, allocations: 157.2 kB / 0.8834 GB, free: 292 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.01295, allocations: 0 / 0.8834 GB, free: 292 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.5e-05/0.01305, allocations: 15.98 kB / 0.8834 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.01305, allocations: 288 / 0.8834 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.01306, allocations: 0 / 0.8834 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.01306, allocations: 0 / 0.8834 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.01307, allocations: 0 / 0.8834 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003416/0.01341, allocations: 128.8 kB / 0.8835 GB, free: 128 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.896e-05/0.01344, allocations: 15.89 kB / 0.8835 GB, free: 112 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.01346, allocations: 0 / 0.8835 GB, free: 112 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.01355, allocations: 19.98 kB / 0.8835 GB, free: 92 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.0136, allocations: 0 / 0.8835 GB, free: 92 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.01362, allocations: 11.98 kB / 0.8836 GB, free: 80 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002004/0.01382, allocations: 173.8 kB / 0.8837 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01382, allocations: 0 / 0.8837 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002398/0.01406, allocations: 27.83 kB / 0.8837 GB, free: 15.88 MB / 0.8542 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.0002775/0.01434, allocations: 124.5 kB / 0.8839 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003046/0.01465, allocations: 55.83 kB / 0.8839 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.01465, allocations: 4 kB / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.01477, allocations: 27.97 kB / 0.884 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.01511, allocations: 46.8 kB / 0.884 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006404/0.01575, allocations: 285.8 kB / 0.8843 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.01588, allocations: 110.1 kB / 0.8844 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.691e-05/0.01595, allocations: 20.45 kB / 0.8844 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.014e-05/0.016, allocations: 16.5 kB / 0.8844 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of SimCode: time 6.91e-07/0.016, allocations: 0 / 0.8844 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of Templates: time 0.005787/0.02179, allocations: 1.791 MB / 0.8862 GB, free: 13.41 MB / 0.8542 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.259622014011256]