Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.002018/0.002018, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002741/0.002741, allocations: 219.5 kB / 22.25 MB, free: 4.852 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.682/1.682, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.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 3.583/3.583, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_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_latest_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.002161/0.002161, allocations: 67.8 kB / 1.186 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4986/0.5008, allocations: 181.9 MB / 1.364 GB, free: 13.63 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.007884/0.5087, allocations: 3.784 MB / 1.368 GB, free: 9.824 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003628/0.5123, allocations: 1.71 MB / 1.369 GB, free: 8.105 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.5125, allocations: 11.94 kB / 1.369 GB, free: 8.094 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.5141, allocations: 0.4922 MB / 1.37 GB, free: 7.602 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0006972/0.5148, allocations: 222.9 kB / 1.37 GB, free: 7.383 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.5155, allocations: 219.4 kB / 1.37 GB, free: 7.168 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0007226/0.5162, allocations: 474.4 kB / 1.371 GB, free: 6.703 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006216/0.5168, allocations: 285.4 kB / 1.371 GB, free: 6.422 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/0.5171, allocations: 203.3 kB / 1.371 GB, free: 6.223 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000459/0.5176, allocations: 211.2 kB / 1.371 GB, free: 6.016 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.593e-05/0.5176, allocations: 35.94 kB / 1.371 GB, free: 5.98 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004503/0.5181, allocations: 215.5 kB / 1.371 GB, free: 5.77 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.5182, allocations: 135.6 kB / 1.372 GB, free: 5.637 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.5184, allocations: 143.4 kB / 1.372 GB, free: 5.496 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007353/0.5192, allocations: 0.5059 MB / 1.372 GB, free: 4.988 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.5192, allocations: 0 / 1.372 GB, free: 4.988 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.783e-06/0.5192, allocations: 0 / 1.372 GB, free: 4.988 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.5192, allocations: 0 / 1.372 GB, free: 4.988 MB / 1.061 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.001187/0.5204, allocations: 0.5635 MB / 1.373 GB, free: 4.395 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.5204, allocations: 12.03 kB / 1.373 GB, free: 4.383 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009257/0.5213, allocations: 128.6 kB / 1.373 GB, free: 4.258 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004804/0.5218, allocations: 237.9 kB / 1.373 GB, free: 4 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.5218, allocations: 21.03 kB / 1.373 GB, free: 3.977 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.187e-05/0.5219, allocations: 28.38 kB / 1.373 GB, free: 3.949 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008509/0.5227, allocations: 0.5862 MB / 1.374 GB, free: 3.297 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.5228, allocations: 3.938 kB / 1.374 GB, free: 3.293 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.647e-05/0.5228, allocations: 12 kB / 1.374 GB, free: 3.281 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-05/0.5229, allocations: 32.64 kB / 1.374 GB, free: 3.25 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005488/0.5234, allocations: 322.2 kB / 1.374 GB, free: 2.938 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.5256, allocations: 1.513 MB / 1.376 GB, free: 1.352 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.526, allocations: 162.6 kB / 1.376 GB, free: 1.184 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002519/0.5262, allocations: 100.8 kB / 1.376 GB, free: 1.082 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.5262, allocations: 4 kB / 1.376 GB, free: 1.078 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.5263, allocations: 34.56 kB / 1.376 GB, free: 1.035 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.343e-06/0.5263, allocations: 0 / 1.376 GB, free: 1.035 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0006428/0.5269, allocations: 225.5 kB / 1.376 GB, free: 0.8086 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.527, allocations: 55.41 kB / 1.376 GB, free: 0.7422 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.5273, allocations: 228 kB / 1.376 GB, free: 0.5117 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.5273, allocations: 29.7 kB / 1.376 GB, free: 488 kB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.5275, allocations: 216.1 kB / 1.377 GB, free: 264 kB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.5276, allocations: 59.56 kB / 1.377 GB, free: 204 kB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.57e-05/0.5276, allocations: 49.91 kB / 1.377 GB, free: 144 kB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002144/0.5279, allocations: 334.8 kB / 1.377 GB, free: 15.8 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.528, allocations: 52.44 kB / 1.377 GB, free: 15.75 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.5282, allocations: 152 kB / 1.377 GB, free: 15.57 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003034/0.5285, allocations: 214.9 kB / 1.377 GB, free: 15.32 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5285, allocations: 0 / 1.377 GB, free: 15.32 MB / 1.076 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004614/0.5289, allocations: 258.2 kB / 1.378 GB, free: 15.05 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.5289, allocations: 11.98 kB / 1.378 GB, free: 15.04 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.5289, allocations: 0 / 1.378 GB, free: 15.04 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001891/0.5291, allocations: 28.84 kB / 1.378 GB, free: 15.01 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.5293, allocations: 43.92 kB / 1.378 GB, free: 14.97 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.5307, allocations: 1.3 MB / 1.379 GB, free: 13.57 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.5308, allocations: 27.78 kB / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.5309, allocations: 8 kB / 1.379 GB, free: 13.54 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.000186/0.531, allocations: 173.7 kB / 1.379 GB, free: 13.36 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.5311, allocations: 23.8 kB / 1.379 GB, free: 13.33 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/0.5311, allocations: 29.39 kB / 1.379 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.5311, allocations: 4 kB / 1.379 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5312, allocations: 8.062 kB / 1.379 GB, free: 13.29 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.5312, allocations: 0 / 1.379 GB, free: 13.29 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008982/0.5321, allocations: 0.5622 MB / 1.38 GB, free: 12.67 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.5321, allocations: 3.984 kB / 1.38 GB, free: 12.66 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.25e-05/0.5321, allocations: 23.94 kB / 1.38 GB, free: 12.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.153e-05/0.5322, allocations: 25.03 kB / 1.38 GB, free: 12.61 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.5323, allocations: 4 kB / 1.38 GB, free: 12.61 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.5334, allocations: 1.288 MB / 1.381 GB, free: 11.22 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5335, allocations: 4.031 kB / 1.381 GB, free: 11.22 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004051/0.5339, allocations: 315.7 kB / 1.381 GB, free: 10.88 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 8.664e-05/0.5339, allocations: 35.84 kB / 1.381 GB, free: 10.84 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.534, allocations: 8.156 kB / 1.381 GB, free: 10.83 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.5341, allocations: 11.98 kB / 1.381 GB, free: 10.82 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.634e-05/0.5342, allocations: 11.98 kB / 1.382 GB, free: 10.81 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.5342, allocations: 11.94 kB / 1.382 GB, free: 10.8 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001722/0.5343, allocations: 161.8 kB / 1.382 GB, free: 10.64 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.5343, allocations: 0 / 1.382 GB, free: 10.64 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004044/0.5348, allocations: 83.78 kB / 1.382 GB, free: 10.56 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.0001354/0.5349, allocations: 103.2 kB / 1.382 GB, free: 10.45 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005211/0.5354, allocations: 262.4 kB / 1.382 GB, free: 10.18 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.5354, allocations: 0 / 1.382 GB, free: 10.18 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.5357, allocations: 183.6 kB / 1.382 GB, free: 9.988 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.5361, allocations: 52.7 kB / 1.382 GB, free: 9.938 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009857/0.5371, allocations: 0.5437 MB / 1.383 GB, free: 9.348 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.5373, allocations: 186.1 kB / 1.383 GB, free: 9.148 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001433/0.5375, allocations: 41.91 kB / 1.383 GB, free: 9.102 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.768e-05/0.5375, allocations: 19.44 kB / 1.383 GB, free: 9.082 MB / 1.076 GB Notification: Performance of SimCode: time 4.71e-07/0.5375, allocations: 288 / 1.383 GB, free: 9.082 MB / 1.076 GB Notification: Performance of Templates: time 0.007351/0.5449, allocations: 2.777 MB / 1.386 GB, free: 6.371 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.408073332160711]