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.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.001913/0.001913, allocations: 110 kB / 18.93 MB, free: 2.945 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.002304/0.002304, allocations: 192.5 kB / 22.23 MB, free: 5.16 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.458/1.458, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.186/3.186, allocations: 496 MB / 0.7835 GB, free: 33.57 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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_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 0.00202/0.00202, allocations: 62.31 kB / 1.138 GB, free: 33.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.368, allocations: 173.6 MB / 1.307 GB, free: 1.828 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003777/0.3718, allocations: 1.67 MB / 1.309 GB, free: 152 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001131/0.373, allocations: 0.5611 MB / 1.309 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.3731, allocations: 7.938 kB / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.3733, allocations: 31.7 kB / 1.309 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0003155/0.3736, allocations: 67 kB / 1.31 GB, free: 15.48 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002321/0.3738, allocations: 55.86 kB / 1.31 GB, free: 15.43 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002909/0.3741, allocations: 147.5 kB / 1.31 GB, free: 15.28 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.3743, allocations: 33.61 kB / 1.31 GB, free: 15.24 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.3745, allocations: 55.83 kB / 1.31 GB, free: 15.19 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001646/0.3747, allocations: 63.7 kB / 1.31 GB, free: 15.12 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.968e-05/0.3747, allocations: 8 kB / 1.31 GB, free: 15.12 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.3748, allocations: 31.92 kB / 1.31 GB, free: 15.09 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.375, allocations: 43.83 kB / 1.31 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.3751, allocations: 59.59 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.3754, allocations: 139.3 kB / 1.31 GB, free: 14.85 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.3754, allocations: 8 kB / 1.31 GB, free: 14.84 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3754, allocations: 3.938 kB / 1.31 GB, free: 14.84 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.3754, allocations: 0 / 1.31 GB, free: 14.84 MB / 1.014 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.0008527/0.3762, allocations: 393.4 kB / 1.311 GB, free: 14.42 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.3763, allocations: 8.922 kB / 1.311 GB, free: 14.41 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.215e-05/0.3764, allocations: 20.8 kB / 1.311 GB, free: 14.39 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004279/0.3768, allocations: 191 kB / 1.311 GB, free: 14.18 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.3768, allocations: 8.375 kB / 1.311 GB, free: 14.17 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.3768, allocations: 4.375 kB / 1.311 GB, free: 14.17 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.3772, allocations: 106 kB / 1.311 GB, free: 14.06 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3772, allocations: 0 / 1.311 GB, free: 14.06 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.3772, allocations: 4 kB / 1.311 GB, free: 14.05 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3772, allocations: 0 / 1.311 GB, free: 14.05 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.3775, allocations: 71.92 kB / 1.311 GB, free: 13.98 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007689/0.3782, allocations: 351.6 kB / 1.311 GB, free: 13.6 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/0.3784, allocations: 38.55 kB / 1.311 GB, free: 13.55 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.3786, allocations: 32.91 kB / 1.311 GB, free: 13.52 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.3786, allocations: 3.984 kB / 1.311 GB, free: 13.51 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.3789, allocations: 97.02 kB / 1.311 GB, free: 13.4 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.3789, allocations: 0 / 1.311 GB, free: 13.4 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0005152/0.3794, allocations: 125.5 kB / 1.312 GB, free: 13.27 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.3795, allocations: 77.11 kB / 1.312 GB, free: 13.18 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003453/0.3798, allocations: 256.9 kB / 1.312 GB, free: 12.92 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.3798, allocations: 25.7 kB / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.38, allocations: 132 kB / 1.312 GB, free: 12.75 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.38, allocations: 11.89 kB / 1.312 GB, free: 12.74 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.315e-05/0.38, allocations: 17.7 kB / 1.312 GB, free: 12.72 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002133/0.3802, allocations: 334.8 kB / 1.312 GB, free: 12.38 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.3804, allocations: 23.97 kB / 1.312 GB, free: 12.36 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.3805, allocations: 47.41 kB / 1.312 GB, free: 12.3 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.3807, allocations: 66.5 kB / 1.313 GB, free: 12.23 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3807, allocations: 0 / 1.313 GB, free: 12.23 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003073/0.381, allocations: 105.4 kB / 1.313 GB, free: 12.12 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.3811, allocations: 12.03 kB / 1.313 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3811, allocations: 4 kB / 1.313 GB, free: 12.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3811, allocations: 3.938 kB / 1.313 GB, free: 12.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3812, allocations: 11.98 kB / 1.313 GB, free: 12.09 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.3812, allocations: 4 kB / 1.313 GB, free: 12.08 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.411e-05/0.3813, allocations: 7.984 kB / 1.313 GB, free: 12.07 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.3813, allocations: 8 kB / 1.313 GB, free: 12.07 MB / 1.014 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.0001356/0.3815, allocations: 121.8 kB / 1.313 GB, free: 11.94 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.076e-05/0.3815, allocations: 23.86 kB / 1.313 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.94e-05/0.3815, allocations: 25.33 kB / 1.313 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3816, allocations: 3.938 kB / 1.313 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3816, allocations: 0 / 1.313 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3816, allocations: 0 / 1.313 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.3818, allocations: 188.7 kB / 1.313 GB, free: 11.66 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3818, allocations: 0 / 1.313 GB, free: 11.66 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.3819, allocations: 15.98 kB / 1.313 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3819, allocations: 0 / 1.313 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.3819, allocations: 0 / 1.313 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3819, allocations: 3.938 kB / 1.313 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3819, allocations: 7.938 kB / 1.313 GB, free: 11.63 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.3822, allocations: 117 kB / 1.313 GB, free: 11.5 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 2.743e-05/0.3822, allocations: 11.91 kB / 1.313 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.3823, allocations: 4 kB / 1.313 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.823e-05/0.3824, allocations: 15.92 kB / 1.313 GB, free: 11.46 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.08e-05/0.3824, allocations: 7.984 kB / 1.313 GB, free: 11.46 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.3824, allocations: 8 kB / 1.313 GB, free: 11.45 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002016/0.3826, allocations: 188.5 kB / 1.313 GB, free: 11.26 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3826, allocations: 0 / 1.313 GB, free: 11.26 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002485/0.3829, allocations: 27.89 kB / 1.313 GB, free: 11.23 MB / 1.014 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.0002911/0.3832, allocations: 123.9 kB / 1.314 GB, free: 11.11 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003107/0.3835, allocations: 60 kB / 1.314 GB, free: 11.05 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3835, allocations: 0 / 1.314 GB, free: 11.05 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.3836, allocations: 35.84 kB / 1.314 GB, free: 11.02 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.3839, allocations: 45.22 kB / 1.314 GB, free: 10.98 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006506/0.3846, allocations: 295.8 kB / 1.314 GB, free: 10.66 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.385, allocations: 0.7158 MB / 1.315 GB, free: 9.922 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.169e-05/0.3851, allocations: 20.47 kB / 1.315 GB, free: 9.902 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.913e-05/0.3851, allocations: 11.44 kB / 1.315 GB, free: 9.891 MB / 1.014 GB Notification: Performance of SimCode: time 4.81e-07/0.3851, allocations: 4 kB / 1.315 GB, free: 9.887 MB / 1.014 GB Notification: Performance of Templates: time 0.005774/0.3909, allocations: 1.787 MB / 1.316 GB, free: 8.121 MB / 1.014 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.022115013562143]