Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.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.001425/0.001425, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001491/0.001491, allocations: 149.4 kB / 24.26 MB, free: 180 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 1.457/1.457, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.539e-05/2.721e-05, allocations: 2.312 kB / 267.3 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006198/0.006225, allocations: 3.837 MB / 271.2 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.008196, allocations: 0.8916 MB / 272.1 MB, free: 1.965 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.008404, allocations: 8 kB / 272.1 MB, free: 1.957 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000276/0.00868, allocations: 103 kB / 272.2 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005229/0.009203, allocations: 206.1 kB / 272.4 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.00958, allocations: 167.7 kB / 272.5 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008937/0.01047, allocations: 0.7552 MB / 273.3 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.0108, allocations: 155.6 kB / 273.4 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005544/0.01135, allocations: 423 kB / 273.9 MB, free: 160 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004027/0.01176, allocations: 243.4 kB / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.01186, allocations: 64 kB / 274.2 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.01197, allocations: 60 kB / 274.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.01215, allocations: 151.4 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002823/0.01243, allocations: 227.4 kB / 274.6 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00087/0.0133, allocations: 0.7319 MB / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.01331, allocations: 0 / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01331, allocations: 4 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.01332, allocations: 0 / 275.3 MB, free: 14.68 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001678/0.015, allocations: 0.8438 MB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.01504, allocations: 8.922 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002528/0.0153, allocations: 112.5 kB / 276.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006109/0.01591, allocations: 327.5 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.926e-05/0.01596, allocations: 37.69 kB / 276.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.01606, allocations: 56.31 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.01712, allocations: 0.5381 MB / 277.2 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.01714, allocations: 8.125 kB / 277.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.99e-05/0.0172, allocations: 28.12 kB / 277.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.01721, allocations: 12 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.01839, allocations: 443.7 kB / 277.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.0214, allocations: 1.789 MB / 279.5 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.02242, allocations: 0.5294 MB / 280 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006744/0.02309, allocations: 366.3 kB / 280.4 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.692e-05/0.02314, allocations: 8.5 kB / 280.4 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.02318, allocations: 39.06 kB / 280.4 MB, free: 9.391 MB / 266.7 MB Notification: Performance of pre-optimization done (n=60): time 1.884e-06/0.02318, allocations: 0 / 280.4 MB, free: 9.391 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.004736/0.02792, allocations: 1.736 MB / 282.2 MB, free: 7.609 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.02797, allocations: 55.91 kB / 282.2 MB, free: 7.543 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/0.0284, allocations: 333.7 kB / 282.6 MB, free: 7.211 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.02845, allocations: 33.7 kB / 282.6 MB, free: 7.172 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.02867, allocations: 245.3 kB / 282.8 MB, free: 6.926 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.02887, allocations: 202.2 kB / 283 MB, free: 6.727 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.02903, allocations: 94.3 kB / 283.1 MB, free: 6.629 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.02926, allocations: 354.8 kB / 283.5 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.02964, allocations: 165.2 kB / 283.6 MB, free: 6.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004197/0.03006, allocations: 212.8 kB / 283.8 MB, free: 5.895 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007846/0.03085, allocations: 390.1 kB / 284.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.03085, allocations: 0 / 284.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001651/0.0325, allocations: 0.6759 MB / 284.9 MB, free: 4.812 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.03252, allocations: 6.969 kB / 284.9 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.03253, allocations: 0 / 284.9 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008776/0.03341, allocations: 267.2 kB / 285.2 MB, free: 4.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.03372, allocations: 67.83 kB / 285.2 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1243/0.158, allocations: 6.965 MB / 292.2 MB, free: 29.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.1584, allocations: 17.14 kB / 292.2 MB, free: 29.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.1584, allocations: 15.95 kB / 292.2 MB, free: 29.94 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: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002066/0.1586, allocations: 177.6 kB / 292.4 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.1587, allocations: 71.8 kB / 292.5 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.1588, allocations: 63.78 kB / 292.5 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1588, allocations: 6.719 kB / 292.5 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.1588, allocations: 1.219 kB / 292.5 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1589, allocations: 4.312 kB / 292.5 MB, free: 29.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001901/0.1608, allocations: 1.169 MB / 293.7 MB, free: 29.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.1608, allocations: 0.8906 kB / 293.7 MB, free: 29.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.161, allocations: 59.66 kB / 293.8 MB, free: 29.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006783/0.1617, allocations: 255.2 kB / 294 MB, free: 29.28 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.1617, allocations: 11.78 kB / 294 MB, free: 29.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004934/0.1667, allocations: 6.99 MB / 301 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1667, allocations: 3.938 kB / 301 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.1683, allocations: 1.032 MB / 302.1 MB, free: 22.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.1685, allocations: 84.17 kB / 302.1 MB, free: 22.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.1686, allocations: 13.36 kB / 302.2 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.1688, allocations: 19.98 kB / 302.2 MB, free: 22.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.169, allocations: 56.22 kB / 302.2 MB, free: 22.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.169, allocations: 15.41 kB / 302.2 MB, free: 22.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002269/0.1692, allocations: 235 kB / 302.5 MB, free: 22.44 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1692, allocations: 0 / 302.5 MB, free: 22.44 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008793/0.1701, allocations: 175.9 kB / 302.6 MB, free: 22.41 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001231/0.1702, allocations: 116.6 kB / 302.8 MB, free: 22.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.1716, allocations: 1.01 MB / 303.8 MB, free: 21.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1716, allocations: 1.594 kB / 303.8 MB, free: 21.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000936/0.1726, allocations: 0.8224 MB / 304.6 MB, free: 21.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.1731, allocations: 79.78 kB / 304.7 MB, free: 21.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.1752, allocations: 1.201 MB / 305.9 MB, free: 20.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.1755, allocations: 277.9 kB / 306.1 MB, free: 20.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.1756, allocations: 45.31 kB / 306.2 MB, free: 20.24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.174e-05/0.1757, allocations: 32.5 kB / 306.2 MB, free: 20.23 MB / 266.7 MB Notification: Performance of SimCode: time 9.31e-07/0.1757, allocations: 4.547 kB / 306.2 MB, free: 20.22 MB / 266.7 MB Notification: Performance of Templates: time 0.0132/0.1889, allocations: 8.427 MB / 314.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.905066279927269]