Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001497/0.001497, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001789/0.001789, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.003/1.003, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.903e-05/3.06e-05, allocations: 5.266 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.00739/0.007421, allocations: 2.571 MB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00405/0.01147, allocations: 0.6855 MB / 276.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.0116, allocations: 4 kB / 276.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000157/0.01176, allocations: 35.64 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.01189, allocations: 79.22 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.01222, allocations: 103.7 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002957/0.01251, allocations: 294.6 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.01267, allocations: 52.55 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.01291, allocations: 171.6 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.01305, allocations: 87.72 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.01308, allocations: 20 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.922e-05/0.01317, allocations: 47.91 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.626e-05/0.01321, allocations: 47.83 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.31e-05/0.01329, allocations: 91.75 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.01356, allocations: 195.4 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.01356, allocations: 4 kB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01356, allocations: 0 / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.01357, allocations: 4 kB / 277.4 MB, free: 12.95 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.003841/0.01741, allocations: 0.5662 MB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.01745, allocations: 11.98 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.01763, allocations: 56.69 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.01787, allocations: 188.2 kB / 278.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.01789, allocations: 16.88 kB / 278.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.01793, allocations: 28.33 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.01821, allocations: 204.8 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.01822, allocations: 4.188 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.01824, allocations: 8.375 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.01825, allocations: 7.938 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.01843, allocations: 78.94 kB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009327/0.01936, allocations: 0.6679 MB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.01959, allocations: 123 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.01972, allocations: 66.78 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.01974, allocations: 8 kB / 279.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.01976, allocations: 37.33 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.01976, allocations: 0 / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.003807/0.02357, allocations: 289.2 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.0236, allocations: 51.41 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.02374, allocations: 229.8 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.02376, allocations: 29.7 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.033e-05/0.02385, allocations: 191.2 kB / 280.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.437e-05/0.02389, allocations: 63.44 kB / 280.3 MB, free: 9.848 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.952e-05/0.02395, allocations: 47.36 kB / 280.3 MB, free: 9.793 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.02408, allocations: 0.5001 MB / 280.8 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.441e-05/0.02413, allocations: 19.98 kB / 280.8 MB, free: 9.262 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.428e-05/0.02421, allocations: 59.28 kB / 280.9 MB, free: 9.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.02435, allocations: 91.42 kB / 281 MB, free: 9.102 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.02435, allocations: 0 / 281 MB, free: 9.102 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002612/0.02461, allocations: 169.1 kB / 281.2 MB, free: 8.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.02463, allocations: 4 kB / 281.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.02463, allocations: 0 / 281.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007347/0.02537, allocations: 175.5 kB / 281.3 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.468e-05/0.02546, allocations: 31.98 kB / 281.4 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004009/0.02586, allocations: 0.8545 MB / 282.2 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.407e-05/0.02592, allocations: 15.89 kB / 282.2 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.02594, allocations: 4 kB / 282.2 MB, free: 7.809 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.144e-05/0.02603, allocations: 168.5 kB / 282.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.02607, allocations: 23.84 kB / 282.4 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003286/0.02935, allocations: 179 kB / 282.6 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.02936, allocations: 7.984 kB / 282.6 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.02936, allocations: 0 / 282.6 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.02937, allocations: 4 kB / 282.6 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005655/0.02993, allocations: 0.5159 MB / 283.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.02993, allocations: 0 / 283.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.03003, allocations: 23.98 kB / 283.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005484/0.03058, allocations: 163.5 kB / 283.3 MB, free: 6.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.0306, allocations: 4 kB / 283.3 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003689/0.03097, allocations: 0.8662 MB / 284.2 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.03097, allocations: 7.938 kB / 284.2 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004767/0.03144, allocations: 402.3 kB / 284.6 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.908e-05/0.03147, allocations: 19.8 kB / 284.6 MB, free: 5.312 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.0315, allocations: 8 kB / 284.6 MB, free: 5.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.993e-05/0.03159, allocations: 8.062 kB / 284.6 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.966e-05/0.03163, allocations: 19.91 kB / 284.6 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.03164, allocations: 4 kB / 284.6 MB, free: 5.273 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.863e-05/0.03172, allocations: 164.2 kB / 284.8 MB, free: 5.113 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03172, allocations: 0 / 284.8 MB, free: 5.113 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002689/0.03199, allocations: 59.89 kB / 284.9 MB, free: 5.055 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.0001224/0.03211, allocations: 103.2 kB / 285 MB, free: 4.945 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004641/0.03257, allocations: 115.8 kB / 285.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.03257, allocations: 4.062 kB / 285.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.104e-05/0.03265, allocations: 72.7 kB / 285.1 MB, free: 4.754 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002047/0.03286, allocations: 28.05 kB / 285.2 MB, free: 4.727 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008027/0.03366, allocations: 0.4949 MB / 285.7 MB, free: 4.191 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.261e-05/0.0337, allocations: 80.22 kB / 285.7 MB, free: 4.094 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.706e-05/0.03374, allocations: 17.47 kB / 285.8 MB, free: 4.074 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.638e-05/0.03377, allocations: 16.5 kB / 285.8 MB, free: 4.059 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.03377, allocations: 3.938 kB / 285.8 MB, free: 4.055 MB / 266.7 MB Notification: Performance of Templates: time 0.004153/0.03792, allocations: 2.366 MB / 288.1 MB, free: 1.723 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.787587239872664]