Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.00105/0.00105, allocations: 77.88 kB / 21.42 MB, free: 3.07 MB / 18.57 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.001122/0.001122, allocations: 168.9 kB / 24.81 MB, free: 8.918 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.004/1.004, allocations: 177.2 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.357e-05, allocations: 6.312 kB / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003719/0.003742, allocations: 2.539 MB / 276 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.005126, allocations: 0.6776 MB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.00527, allocations: 4 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.005423, allocations: 43.64 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.005573, allocations: 75.27 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.005906, allocations: 99.69 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.006192, allocations: 294.5 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.006352, allocations: 56.55 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.006638, allocations: 163.6 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.006793, allocations: 91.77 kB / 277.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.774e-05/0.006831, allocations: 24 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.787e-05/0.006929, allocations: 47.91 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.157e-05/0.00697, allocations: 51.77 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.402e-05/0.007054, allocations: 83.83 kB / 277.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003022/0.007356, allocations: 203.3 kB / 277.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.00736, allocations: 0 / 277.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.007361, allocations: 0 / 277.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.007366, allocations: 0 / 277.8 MB, free: 12.83 MB / 266.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.0007201/0.008086, allocations: 0.5701 MB / 278.4 MB, free: 12.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.008126, allocations: 8.031 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.008308, allocations: 52.73 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.008551, allocations: 184.2 kB / 278.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.008572, allocations: 16.88 kB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.008614, allocations: 32.31 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.008881, allocations: 196.8 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.008893, allocations: 4.188 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.008913, allocations: 8.375 kB / 278.9 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.008922, allocations: 7.938 kB / 278.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.009066, allocations: 65.44 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009961/0.01006, allocations: 0.6411 MB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.01027, allocations: 111.1 kB / 279.7 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.01038, allocations: 59.64 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.0104, allocations: 0 / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.01042, allocations: 45.33 kB / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.01043, allocations: 0 / 279.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007986/0.01122, allocations: 267.1 kB / 280.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.581e-05/0.01125, allocations: 55.41 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.01141, allocations: 229.7 kB / 280.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.01142, allocations: 29.7 kB / 280.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.01152, allocations: 191.2 kB / 280.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.126e-05/0.01156, allocations: 67.41 kB / 280.6 MB, free: 9.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.905e-05/0.01162, allocations: 39.36 kB / 280.7 MB, free: 9.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.01176, allocations: 0.504 MB / 281.2 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.316e-05/0.0118, allocations: 19.98 kB / 281.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.885e-05/0.01186, allocations: 46.34 kB / 281.3 MB, free: 9.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001107/0.01197, allocations: 78.55 kB / 281.3 MB, free: 9.105 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.01197, allocations: 7.938 kB / 281.3 MB, free: 9.098 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002438/0.01222, allocations: 157.1 kB / 281.5 MB, free: 8.934 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.01223, allocations: 8 kB / 281.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.01224, allocations: 0 / 281.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007032/0.01294, allocations: 171.5 kB / 281.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.806e-05/0.01304, allocations: 27.98 kB / 281.7 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004322/0.01347, allocations: 0.8467 MB / 282.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.68e-05/0.01355, allocations: 19.92 kB / 282.6 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.01356, allocations: 4 kB / 282.6 MB, free: 7.824 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 9.915e-05/0.01366, allocations: 164.6 kB / 282.7 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.0137, allocations: 23.91 kB / 282.8 MB, free: 7.629 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.01397, allocations: 169.9 kB / 282.9 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.01397, allocations: 0 / 282.9 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.01397, allocations: 7.984 kB / 282.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.01398, allocations: 3.984 kB / 282.9 MB, free: 7.445 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006057/0.01458, allocations: 475.5 kB / 283.4 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01459, allocations: 7.938 kB / 283.4 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.01469, allocations: 27.97 kB / 283.4 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005652/0.01526, allocations: 159.5 kB / 283.6 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.01527, allocations: 8 kB / 283.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004176/0.01569, allocations: 0.8506 MB / 284.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01569, allocations: 0 / 284.4 MB, free: 5.855 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005061/0.0162, allocations: 382.9 kB / 284.8 MB, free: 5.453 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.986e-05/0.01623, allocations: 27.8 kB / 284.8 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.01625, allocations: 7.938 kB / 284.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.01635, allocations: 15.98 kB / 284.9 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.315e-05/0.01638, allocations: 7.984 kB / 284.9 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.0164, allocations: 4 kB / 284.9 MB, free: 5.391 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.323e-05/0.01648, allocations: 168.1 kB / 285 MB, free: 5.227 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01648, allocations: 0 / 285 MB, free: 5.227 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000324/0.0168, allocations: 59.92 kB / 285.1 MB, free: 5.168 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.0001458/0.01695, allocations: 103.2 kB / 285.2 MB, free: 5.059 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.01719, allocations: 100.6 kB / 285.3 MB, free: 4.957 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.0172, allocations: 4 kB / 285.3 MB, free: 4.953 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.0173, allocations: 68.69 kB / 285.4 MB, free: 4.883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.01762, allocations: 24.12 kB / 285.4 MB, free: 4.859 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.01866, allocations: 0.491 MB / 285.9 MB, free: 4.328 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.294e-05/0.01872, allocations: 80.22 kB / 286 MB, free: 4.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.65e-05/0.01877, allocations: 9.484 kB / 286 MB, free: 4.223 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.01888, allocations: 94.19 kB / 286.1 MB, free: 4.129 MB / 266.7 MB Notification: Performance of SimCode: time 1.283e-06/0.01888, allocations: 0 / 286.1 MB, free: 4.129 MB / 266.7 MB Notification: Performance of Templates: time 0.005517/0.02439, allocations: 2.412 MB / 288.5 MB, free: 1.758 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.688735357951373]