Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.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.001998/0.001998, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.002599/0.002599, allocations: 162.4 kB / 23.02 MB, free: 4.949 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.517/1.517, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.812/2.812, allocations: 359.1 MB / 0.6044 GB, free: 14.81 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 71.89 kB / 0.9515 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4289/0.4311, allocations: 169.9 MB / 1.117 GB, free: 2.539 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.007679/0.4388, allocations: 3.783 MB / 1.121 GB, free: 14.74 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.003752/0.4426, allocations: 1.71 MB / 1.123 GB, free: 13.02 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002923/0.4428, allocations: 11.94 kB / 1.123 GB, free: 13.01 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.4445, allocations: 490.1 kB / 1.123 GB, free: 12.53 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0006555/0.4451, allocations: 230.9 kB / 1.123 GB, free: 12.3 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006203/0.4458, allocations: 211.5 kB / 1.124 GB, free: 12.09 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.000617/0.4464, allocations: 474.4 kB / 1.124 GB, free: 11.63 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005912/0.447, allocations: 289.5 kB / 1.124 GB, free: 11.34 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.4472, allocations: 207.2 kB / 1.125 GB, free: 11.14 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004765/0.4477, allocations: 215.2 kB / 1.125 GB, free: 10.93 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.674e-05/0.4478, allocations: 28 kB / 1.125 GB, free: 10.9 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004354/0.4482, allocations: 223.4 kB / 1.125 GB, free: 10.68 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.4484, allocations: 127.6 kB / 1.125 GB, free: 10.56 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.4486, allocations: 139.4 kB / 1.125 GB, free: 10.42 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0007341/0.4493, allocations: 0.5098 MB / 1.126 GB, free: 9.91 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4493, allocations: 0 / 1.126 GB, free: 9.91 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.354e-06/0.4493, allocations: 0 / 1.126 GB, free: 9.91 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.4493, allocations: 0 / 1.126 GB, free: 9.91 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001283/0.4506, allocations: 0.5635 MB / 1.126 GB, free: 9.316 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.4507, allocations: 15.97 kB / 1.126 GB, free: 9.301 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009716/0.4516, allocations: 132.6 kB / 1.127 GB, free: 9.172 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004717/0.4521, allocations: 237.9 kB / 1.127 GB, free: 8.914 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.026e-05/0.4521, allocations: 25.02 kB / 1.127 GB, free: 8.891 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.208e-05/0.4522, allocations: 32.31 kB / 1.127 GB, free: 8.859 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008968/0.4531, allocations: 0.5784 MB / 1.127 GB, free: 8.215 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.4531, allocations: 0 / 1.127 GB, free: 8.215 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.4532, allocations: 15.98 kB / 1.127 GB, free: 8.199 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.712e-05/0.4532, allocations: 32.64 kB / 1.127 GB, free: 8.168 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.4538, allocations: 318.3 kB / 1.128 GB, free: 7.855 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/0.4559, allocations: 1.509 MB / 1.129 GB, free: 6.277 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004222/0.4563, allocations: 178.6 kB / 1.129 GB, free: 6.094 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/0.4566, allocations: 104.7 kB / 1.129 GB, free: 5.988 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.4566, allocations: 0 / 1.129 GB, free: 5.988 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.4566, allocations: 34.56 kB / 1.129 GB, free: 5.945 MB / 1.076 GB Notification: Performance of pre-optimization done (n=14): time 9.62e-07/0.4566, allocations: 0 / 1.129 GB, free: 5.945 MB / 1.076 GB Notification: Performance of matching and sorting (n=14): time 0.0006182/0.4572, allocations: 216.8 kB / 1.13 GB, free: 5.727 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.4573, allocations: 63.33 kB / 1.13 GB, free: 5.652 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.4576, allocations: 228 kB / 1.13 GB, free: 5.422 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.4576, allocations: 29.7 kB / 1.13 GB, free: 5.387 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.4578, allocations: 208.2 kB / 1.13 GB, free: 5.18 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.723e-05/0.4578, allocations: 51.59 kB / 1.13 GB, free: 5.129 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.305e-05/0.4579, allocations: 45.94 kB / 1.13 GB, free: 5.074 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.4581, allocations: 338.8 kB / 1.131 GB, free: 4.734 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.4582, allocations: 52.44 kB / 1.131 GB, free: 4.684 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.4584, allocations: 144.4 kB / 1.131 GB, free: 4.504 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000328/0.4588, allocations: 230.8 kB / 1.131 GB, free: 4.238 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4588, allocations: 0 / 1.131 GB, free: 4.238 MB / 1.076 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004526/0.4592, allocations: 258 kB / 1.131 GB, free: 3.977 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.4592, allocations: 6.344 kB / 1.131 GB, free: 3.973 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.4592, allocations: 7.984 kB / 1.131 GB, free: 3.965 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002093/0.4594, allocations: 28.84 kB / 1.131 GB, free: 3.934 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.4596, allocations: 44.3 kB / 1.131 GB, free: 3.891 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.461, allocations: 1.303 MB / 1.133 GB, free: 2.484 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.4612, allocations: 27.78 kB / 1.133 GB, free: 2.457 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.4612, allocations: 12 kB / 1.133 GB, free: 2.445 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.4614, allocations: 165.7 kB / 1.133 GB, free: 2.273 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.032e-05/0.4614, allocations: 23.84 kB / 1.133 GB, free: 2.25 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.078e-05/0.4615, allocations: 29.61 kB / 1.133 GB, free: 2.227 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.4615, allocations: 4 kB / 1.133 GB, free: 2.223 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4615, allocations: 0 / 1.133 GB, free: 2.223 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4615, allocations: 0 / 1.133 GB, free: 2.223 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009027/0.4624, allocations: 0.5544 MB / 1.133 GB, free: 1.609 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.4624, allocations: 4 kB / 1.133 GB, free: 1.605 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.026e-05/0.4625, allocations: 19.98 kB / 1.133 GB, free: 1.586 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.994e-05/0.4626, allocations: 29.03 kB / 1.133 GB, free: 1.555 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.4626, allocations: 4 kB / 1.133 GB, free: 1.551 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.4638, allocations: 1.295 MB / 1.135 GB, free: 152 kB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.4638, allocations: 3.984 kB / 1.135 GB, free: 148 kB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.8573/1.321, allocations: 314.8 kB / 1.135 GB, free: 57.77 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/1.321, allocations: 37.42 kB / 1.135 GB, free: 57.77 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/1.321, allocations: 2.812 kB / 1.135 GB, free: 57.77 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/1.321, allocations: 9.031 kB / 1.135 GB, free: 57.77 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/1.321, allocations: 21.41 kB / 1.135 GB, free: 57.77 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/1.321, allocations: 5.719 kB / 1.135 GB, free: 57.77 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001392/1.322, allocations: 162.9 kB / 1.135 GB, free: 57.69 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.322, allocations: 0 / 1.135 GB, free: 57.69 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005334/1.322, allocations: 79.41 kB / 1.135 GB, free: 57.69 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001169/1.322, allocations: 106 kB / 1.135 GB, free: 57.61 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004589/1.323, allocations: 265.7 kB / 1.136 GB, free: 57.5 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/1.323, allocations: 3.562 kB / 1.136 GB, free: 57.5 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001566/1.323, allocations: 180.5 kB / 1.136 GB, free: 57.39 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/1.323, allocations: 55.27 kB / 1.136 GB, free: 57.39 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007933/1.324, allocations: 0.5406 MB / 1.136 GB, free: 57.1 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001702/1.324, allocations: 186.9 kB / 1.137 GB, free: 57.03 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001132/1.324, allocations: 43.12 kB / 1.137 GB, free: 57.03 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/1.324, allocations: 21.09 kB / 1.137 GB, free: 57.02 MB / 1.076 GB Notification: Performance of SimCode: time 3e-07/1.324, allocations: 0 / 1.137 GB, free: 57.02 MB / 1.076 GB Notification: Performance of Templates: time 0.006182/1.331, allocations: 2.442 MB / 1.139 GB, free: 56.88 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.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.770961834001355]