Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier.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.0009684/0.0009684, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009201/0.0009201, allocations: 170 kB / 23.95 MB, free: 0.6094 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 0.874/0.874, allocations: 177.1 MB / 204.3 MB, free: 5.719 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.201e-05, allocations: 2.281 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.003615/0.003637, allocations: 3.862 MB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.005362, allocations: 0.9813 MB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/0.005581, allocations: 11.94 kB / 329.5 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.005773, allocations: 99 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004159/0.006189, allocations: 214 kB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003297/0.006519, allocations: 195.6 kB / 330 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005583/0.007077, allocations: 0.7667 MB / 330.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.007305, allocations: 143.7 kB / 330.9 MB, free: 9.598 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.007704, allocations: 438.9 kB / 331.3 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002355/0.00794, allocations: 243.2 kB / 331.5 MB, free: 8.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003062/0.008246, allocations: 60 kB / 331.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.775e-05/0.008333, allocations: 64 kB / 331.6 MB, free: 8.809 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.008441, allocations: 159.3 kB / 331.8 MB, free: 8.652 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.008578, allocations: 227.4 kB / 332 MB, free: 8.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004744/0.009053, allocations: 0.7358 MB / 332.8 MB, free: 7.691 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.009055, allocations: 0 / 332.8 MB, free: 7.691 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.009057, allocations: 0 / 332.8 MB, free: 7.691 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.009064, allocations: 4 kB / 332.8 MB, free: 7.688 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.0008919/0.009956, allocations: 0.8544 MB / 333.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.009992, allocations: 8.031 kB / 333.6 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.0101, allocations: 115.8 kB / 333.7 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.01029, allocations: 104.4 kB / 333.8 MB, free: 6.574 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.01066, allocations: 347.5 kB / 334.2 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.01068, allocations: 41.69 kB / 334.2 MB, free: 6.164 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/0.01074, allocations: 52.38 kB / 334.3 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.01131, allocations: 0.566 MB / 334.8 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.01132, allocations: 4.188 kB / 334.8 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.01135, allocations: 31.92 kB / 334.9 MB, free: 5.484 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.01136, allocations: 15.98 kB / 334.9 MB, free: 5.469 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005289/0.01189, allocations: 461 kB / 335.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.01369, allocations: 1.904 MB / 337.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005519/0.01424, allocations: 0.5151 MB / 337.8 MB, free: 2.508 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003581/0.0146, allocations: 374.3 kB / 338.1 MB, free: 2.137 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.01462, allocations: 4.5 kB / 338.1 MB, free: 2.133 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.01464, allocations: 39.06 kB / 338.2 MB, free: 2.086 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 1.733e-06/0.01465, allocations: 0 / 338.2 MB, free: 2.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.002653/0.0173, allocations: 1.721 MB / 339.9 MB, free: 320 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/0.01733, allocations: 67.84 kB / 340 MB, free: 236 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002489/0.01758, allocations: 365.6 kB / 340.3 MB, free: 15.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.0176, allocations: 37.7 kB / 340.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.01771, allocations: 253.2 kB / 340.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.358e-05/0.0178, allocations: 206.2 kB / 340.8 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.603e-05/0.01789, allocations: 94.3 kB / 340.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.01798, allocations: 362.7 kB / 341.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.01818, allocations: 165.2 kB / 341.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.01839, allocations: 212.8 kB / 341.6 MB, free: 14.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.0188, allocations: 378.2 kB / 342 MB, free: 14.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.0188, allocations: 0 / 342 MB, free: 14.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000699/0.0195, allocations: 0.6602 MB / 342.6 MB, free: 13.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.01952, allocations: 11.98 kB / 342.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.01952, allocations: 0 / 342.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004233/0.01995, allocations: 251.2 kB / 342.9 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.0201, allocations: 63.98 kB / 343 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004082/0.02418, allocations: 7.045 MB / 350 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.0243, allocations: 16.02 kB / 350 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.02433, allocations: 16 kB / 350 MB, free: 5.617 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.0001406/0.02447, allocations: 170.1 kB / 350.2 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.704e-05/0.02451, allocations: 55.67 kB / 350.3 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.299e-05/0.02457, allocations: 72.95 kB / 350.3 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.02457, allocations: 7.938 kB / 350.3 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.02457, allocations: 4.062 kB / 350.3 MB, free: 5.305 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.02458, allocations: 7.984 kB / 350.4 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.02589, allocations: 1.233 MB / 351.6 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.02589, allocations: 0 / 351.6 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.02603, allocations: 63.89 kB / 351.6 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003508/0.02638, allocations: 255.2 kB / 351.9 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.02641, allocations: 11.94 kB / 351.9 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003961/0.03037, allocations: 7.035 MB / 358.9 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.03037, allocations: 4.125 kB / 358.9 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.0314, allocations: 1.017 MB / 360 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/0.03177, allocations: 83.66 kB / 360 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.0318, allocations: 12 kB / 360.1 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.03193, allocations: 19.98 kB / 360.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.03203, allocations: 56.39 kB / 360.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.03205, allocations: 16 kB / 360.1 MB, free: 10.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001752/0.03222, allocations: 263.2 kB / 360.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.03222, allocations: 3.938 kB / 360.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005936/0.03282, allocations: 176 kB / 360.6 MB, free: 10.52 MB / 330.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.001294/0.03411, allocations: 1.588 MB / 362.2 MB, free: 8.891 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009583/0.03507, allocations: 1.006 MB / 363.2 MB, free: 7.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.03507, allocations: 0 / 363.2 MB, free: 7.828 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006546/0.03573, allocations: 0.8214 MB / 364 MB, free: 6.957 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.03607, allocations: 93.53 kB / 364.1 MB, free: 6.867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004736/0.0408, allocations: 5.028 MB / 369.1 MB, free: 1.727 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.041, allocations: 292.3 kB / 369.4 MB, free: 1.414 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.04111, allocations: 52.55 kB / 369.4 MB, free: 1.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.04126, allocations: 172.4 kB / 369.6 MB, free: 1.188 MB / 330.7 MB Notification: Performance of SimCode: time 6.41e-07/0.04126, allocations: 0 / 369.6 MB, free: 1.188 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03198/0.07324, allocations: 14.59 MB / 384.2 MB, free: 2.832 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.056, allocations: 8.062 kB / 384.2 MB, free: 2.824 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.041920273564756]