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.0008498/0.0008498, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0009842/0.0009842, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 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.8839/0.8839, allocations: 173.4 MB / 200.4 MB, free: 9.414 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 318.5 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.35e-05, allocations: 2.281 kB / 318.5 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.003879/0.003903, allocations: 3.823 MB / 322.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.005523, allocations: 0.8956 MB / 323.2 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003205/0.005843, allocations: 15.94 kB / 323.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002351/0.006078, allocations: 99 kB / 323.3 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005215/0.0066, allocations: 206.1 kB / 323.5 MB, free: 1.246 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.006929, allocations: 171.7 kB / 323.7 MB, free: 1.078 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000694/0.007623, allocations: 0.7552 MB / 324.4 MB, free: 328 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.00786, allocations: 147.6 kB / 324.6 MB, free: 180 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004656/0.008326, allocations: 427.2 kB / 325 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.008582, allocations: 243.2 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.712e-05/0.00865, allocations: 64 kB / 325.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.805e-05/0.008708, allocations: 60 kB / 325.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.00883, allocations: 151.4 kB / 325.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.008994, allocations: 223.4 kB / 325.7 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005362/0.00953, allocations: 0.7358 MB / 326.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.009537, allocations: 4 kB / 326.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.009539, allocations: 0 / 326.4 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.009552, allocations: 0 / 326.4 MB, free: 14.29 MB / 298.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.001085/0.01064, allocations: 0.8468 MB / 327.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.01068, allocations: 12.92 kB / 327.3 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.0108, allocations: 111.9 kB / 327.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.648e-05/0.01089, allocations: 76.47 kB / 327.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.01132, allocations: 331.6 kB / 327.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.01134, allocations: 41.69 kB / 327.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.0114, allocations: 56.38 kB / 327.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006341/0.01203, allocations: 0.566 MB / 328.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.01204, allocations: 192 / 328.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.01208, allocations: 27.94 kB / 328.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.01209, allocations: 16 kB / 328.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005681/0.01266, allocations: 464.9 kB / 329 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.01453, allocations: 1.9 MB / 330.9 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006967/0.01523, allocations: 0.5229 MB / 331.4 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004315/0.01566, allocations: 354.3 kB / 331.7 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.01569, allocations: 12.44 kB / 331.7 MB, free: 8.789 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.01571, allocations: 43.05 kB / 331.8 MB, free: 8.738 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 2.044e-06/0.01572, allocations: 0 / 331.8 MB, free: 8.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.002579/0.0183, allocations: 1.724 MB / 333.5 MB, free: 6.965 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.01833, allocations: 59.89 kB / 333.6 MB, free: 6.895 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000279/0.01861, allocations: 365.7 kB / 333.9 MB, free: 6.527 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.01864, allocations: 33.7 kB / 334 MB, free: 6.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.01875, allocations: 245.3 kB / 334.2 MB, free: 6.246 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.01886, allocations: 214.2 kB / 334.4 MB, free: 6.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.01897, allocations: 86.34 kB / 334.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.732e-05/0.01906, allocations: 362.7 kB / 334.8 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.01927, allocations: 165.2 kB / 335 MB, free: 5.422 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.01949, allocations: 212.8 kB / 335.2 MB, free: 5.207 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004751/0.01997, allocations: 394 kB / 335.6 MB, free: 4.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.01997, allocations: 0 / 335.6 MB, free: 4.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008471/0.02082, allocations: 0.6563 MB / 336.3 MB, free: 4.145 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.02084, allocations: 8 kB / 336.3 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.02084, allocations: 0 / 336.3 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004588/0.0213, allocations: 251.2 kB / 336.5 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.02148, allocations: 63.89 kB / 336.6 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005173/0.02665, allocations: 7.045 MB / 343.6 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.02683, allocations: 20.02 kB / 343.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.02685, allocations: 12.56 kB / 343.6 MB, free: 12.28 MB / 314.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.0001822/0.02703, allocations: 178.5 kB / 343.8 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.939e-05/0.02708, allocations: 47.72 kB / 343.9 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.564e-05/0.02714, allocations: 64.89 kB / 343.9 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.02714, allocations: 8 kB / 343.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.02715, allocations: 64 / 343.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.02715, allocations: 15.92 kB / 344 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.02848, allocations: 1.233 MB / 345.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.02849, allocations: 3.984 kB / 345.2 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.02864, allocations: 55.91 kB / 345.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004145/0.02906, allocations: 255.2 kB / 345.5 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.02908, allocations: 15.94 kB / 345.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004208/0.03329, allocations: 7.037 MB / 352.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.03329, allocations: 0 / 352.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.03443, allocations: 1.017 MB / 353.6 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.03457, allocations: 88.16 kB / 353.7 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/0.03461, allocations: 12 kB / 353.7 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.03474, allocations: 19.92 kB / 353.7 MB, free: 1.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.03487, allocations: 56.39 kB / 353.7 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.03489, allocations: 16 kB / 353.8 MB, free: 1.609 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.03508, allocations: 263.2 kB / 354 MB, free: 1.352 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03508, allocations: 3.938 kB / 354 MB, free: 1.348 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006403/0.03572, allocations: 175.9 kB / 354.2 MB, free: 1.176 MB / 314.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.001374/0.03709, allocations: 1.576 MB / 355.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.03818, allocations: 1.013 MB / 356.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.03818, allocations: 0 / 356.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007103/0.03889, allocations: 0.8175 MB / 357.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.03927, allocations: 85.44 kB / 357.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004938/0.04421, allocations: 5.001 MB / 362.7 MB, free: 8.426 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.04442, allocations: 283.9 kB / 363 MB, free: 8.121 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.04455, allocations: 52.55 kB / 363 MB, free: 8.066 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.0447, allocations: 172.4 kB / 363.2 MB, free: 7.898 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.0447, allocations: 0 / 363.2 MB, free: 7.898 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.07721, allocations: 14.51 MB / 377.7 MB, free: 9.625 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.338/8.415, allocations: 7.062 kB / 377.7 MB, free: 9.621 MB / 346.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] 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: 10.439181581139565]