Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.00114/0.00114, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001158/0.001158, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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 0.9874/0.9874, allocations: 173.3 MB / 201.1 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.888e-05/3.077e-05, allocations: 6.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.006552/0.006583, allocations: 2.536 MB / 270.5 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004439/0.01102, allocations: 0.6464 MB / 271.2 MB, free: 3.199 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.01116, allocations: 4 kB / 271.2 MB, free: 3.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.01132, allocations: 31.66 kB / 271.2 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.01146, allocations: 79.27 kB / 271.3 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.01179, allocations: 95.64 kB / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002936/0.01208, allocations: 286.6 kB / 271.7 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.01227, allocations: 68.53 kB / 271.7 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.01249, allocations: 159.6 kB / 271.9 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.01265, allocations: 83.78 kB / 272 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.01269, allocations: 24 kB / 272 MB, free: 2.379 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.827e-05/0.01278, allocations: 35.98 kB / 272 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.466e-05/0.01282, allocations: 51.77 kB / 272.1 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.855e-05/0.01291, allocations: 87.81 kB / 272.2 MB, free: 2.207 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.01428, allocations: 195.3 kB / 272.4 MB, free: 2.016 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.01429, allocations: 0 / 272.4 MB, free: 2.016 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.01429, allocations: 3.938 kB / 272.4 MB, free: 2.012 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.0143, allocations: 4 kB / 272.4 MB, free: 2.008 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008719/0.01517, allocations: 0.5585 MB / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.01522, allocations: 8.922 kB / 272.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.01533, allocations: 44.8 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.01563, allocations: 184.2 kB / 273.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.01566, allocations: 20.86 kB / 273.2 MB, free: 1.133 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.754e-05/0.01571, allocations: 24.31 kB / 273.2 MB, free: 1.109 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.0161, allocations: 208.8 kB / 273.4 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.01611, allocations: 192 / 273.4 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.01614, allocations: 8.375 kB / 273.4 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.01615, allocations: 11.94 kB / 273.4 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000231/0.01638, allocations: 74.94 kB / 273.5 MB, free: 0.793 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.01757, allocations: 0.6718 MB / 274.2 MB, free: 72 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.01788, allocations: 126.3 kB / 274.3 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.01811, allocations: 63.66 kB / 274.4 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.01814, allocations: 4 kB / 274.4 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.01817, allocations: 37.39 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 2.395e-06/0.01818, allocations: 0 / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.001074/0.01925, allocations: 292.1 kB / 274.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.01929, allocations: 55.34 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.01947, allocations: 225.9 kB / 275 MB, free: 15.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.01949, allocations: 29.7 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.01961, allocations: 195.1 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.022e-05/0.01966, allocations: 55.48 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.683e-05/0.01974, allocations: 43.36 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.0199, allocations: 0.4962 MB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.321e-05/0.01999, allocations: 27.97 kB / 275.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.996e-05/0.02009, allocations: 58.3 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.02027, allocations: 91.31 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.02027, allocations: 7.922 kB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004612/0.02073, allocations: 169.1 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.02075, allocations: 4 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.02076, allocations: 3.938 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.02179, allocations: 167.5 kB / 276.3 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.02194, allocations: 31.97 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005701/0.02251, allocations: 0.8546 MB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.02261, allocations: 15.89 kB / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.02263, allocations: 4 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.02276, allocations: 164.6 kB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.02283, allocations: 19.91 kB / 277.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004159/0.02324, allocations: 190 kB / 277.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.02325, allocations: 4 kB / 277.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.02325, allocations: 0 / 277.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.02326, allocations: 8.016 kB / 277.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008349/0.0241, allocations: 0.5082 MB / 278.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.0241, allocations: 0 / 278.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.02424, allocations: 27.92 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007961/0.02504, allocations: 163.5 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.02506, allocations: 4 kB / 278.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005154/0.02558, allocations: 0.8623 MB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.02558, allocations: 0 / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006995/0.02628, allocations: 406.9 kB / 279.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.128e-05/0.02631, allocations: 19.83 kB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.02634, allocations: 4 kB / 279.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.02647, allocations: 11.98 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.02653, allocations: 19.91 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.02654, allocations: 4 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000274/0.02682, allocations: 164.2 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.02682, allocations: 0 / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003794/0.0272, allocations: 59.83 kB / 279.8 MB, free: 10.15 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (10): * Single equations (assignments): 9 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001914/0.02739, allocations: 111.2 kB / 279.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003683/0.02776, allocations: 115.1 kB / 280 MB, free: 9.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.02776, allocations: 0 / 280 MB, free: 9.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.02793, allocations: 75.62 kB / 280.1 MB, free: 9.836 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.02831, allocations: 28.11 kB / 280.1 MB, free: 9.809 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.02971, allocations: 0.4915 MB / 280.6 MB, free: 9.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.958e-05/0.02976, allocations: 76.22 kB / 280.7 MB, free: 9.191 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.548e-05/0.02981, allocations: 9.484 kB / 280.7 MB, free: 9.184 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.32e-05/0.02984, allocations: 16.5 kB / 280.7 MB, free: 9.164 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.02984, allocations: 4 kB / 280.7 MB, free: 9.16 MB / 266.7 MB Notification: Performance of Templates: time 0.004591/0.03443, allocations: 2.258 MB / 283 MB, free: 6.938 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9335141270421445]