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.00192/0.00192, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 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.002291/0.002291, allocations: 209.8 kB / 23.74 MB, free: 4.691 MB / 14.72 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.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001849/0.001849, allocations: 43.92 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2826, allocations: 53.35 MB / 431.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006057/0.2887, allocations: 4.308 MB / 435.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.2909, allocations: 1.027 MB / 436.5 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004497/0.2913, allocations: 11.94 kB / 436.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000368/0.2917, allocations: 99 kB / 436.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007403/0.2924, allocations: 202.2 kB / 436.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.293, allocations: 191.7 kB / 437 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.294, allocations: 0.7361 MB / 437.7 MB, free: 260 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003661/0.2944, allocations: 159.7 kB / 437.9 MB, free: 96 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005728/0.295, allocations: 294.9 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006047/0.2956, allocations: 334.5 kB / 438.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.2957, allocations: 60 kB / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.2959, allocations: 64 kB / 438.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.2961, allocations: 147.5 kB / 438.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004646/0.2966, allocations: 326.3 kB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009626/0.2976, allocations: 0.7312 MB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2976, allocations: 4 kB / 439.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2976, allocations: 0 / 439.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.2976, allocations: 0 / 439.8 MB, free: 14.15 MB / 350.1 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.001719/0.2993, allocations: 0.8593 MB / 440.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2993, allocations: 8.031 kB / 440.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001845/0.2995, allocations: 108 kB / 440.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003942/0.2999, allocations: 100.4 kB / 440.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006979/0.3006, allocations: 348.3 kB / 441.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.937e-05/0.3007, allocations: 41.62 kB / 441.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.88e-05/0.3008, allocations: 56.38 kB / 441.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3018, allocations: 0.5771 MB / 441.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3018, allocations: 0 / 441.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.766e-05/0.3018, allocations: 20 kB / 441.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.3018, allocations: 16 kB / 441.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009224/0.3028, allocations: 468.9 kB / 442.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003203/0.306, allocations: 2.032 MB / 444.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000907/0.3069, allocations: 0.5189 MB / 444.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005926/0.3075, allocations: 362 kB / 445.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.454e-05/0.3075, allocations: 8.5 kB / 445.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3075, allocations: 35.06 kB / 445.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=60): time 2.284e-06/0.3075, allocations: 0 / 445.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.004403/0.3119, allocations: 1.74 MB / 447.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.312, allocations: 59.91 kB / 447.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004349/0.3124, allocations: 361.7 kB / 447.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/0.3125, allocations: 41.69 kB / 447.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/0.3127, allocations: 249.3 kB / 447.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.3128, allocations: 206.2 kB / 448 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.313, allocations: 94.3 kB / 448.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3132, allocations: 366.7 kB / 448.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003486/0.3135, allocations: 165.2 kB / 448.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003729/0.3139, allocations: 212.8 kB / 448.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006916/0.3146, allocations: 382.1 kB / 449.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3146, allocations: 4 kB / 449.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001267/0.3158, allocations: 0.6563 MB / 449.8 MB, free: 3.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3159, allocations: 12.03 kB / 449.8 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/0.3159, allocations: 4 kB / 449.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007522/0.3166, allocations: 255.1 kB / 450.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.3169, allocations: 67.91 kB / 450.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007255/0.3242, allocations: 7.076 MB / 457.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.3245, allocations: 20.08 kB / 457.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.073e-05/0.3245, allocations: 16.09 kB / 457.3 MB, free: 11.9 MB / 366.1 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.0002609/0.3248, allocations: 177.4 kB / 457.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.3249, allocations: 55.61 kB / 457.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.3251, allocations: 69.02 kB / 457.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.054e-06/0.3251, allocations: 8 kB / 457.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3251, allocations: 0 / 457.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3251, allocations: 7.984 kB / 457.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.3274, allocations: 1.311 MB / 458.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3274, allocations: 0 / 458.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002761/0.3276, allocations: 51.95 kB / 458.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007062/0.3283, allocations: 263.6 kB / 459.2 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.3284, allocations: 16 kB / 459.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007346/0.3357, allocations: 7.096 MB / 466.3 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3357, allocations: 4.062 kB / 466.3 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3377, allocations: 1.017 MB / 467.3 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002317/0.3379, allocations: 79.66 kB / 467.4 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.379e-05/0.338, allocations: 15.98 kB / 467.4 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002681/0.3383, allocations: 16 kB / 467.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.3384, allocations: 56.39 kB / 467.5 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.519e-05/0.3384, allocations: 19.92 kB / 467.5 MB, free: 1.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003139/0.3388, allocations: 259.2 kB / 467.8 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3388, allocations: 4 kB / 467.8 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009105/0.3397, allocations: 176 kB / 467.9 MB, free: 0.6719 MB / 366.1 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.002206/0.3419, allocations: 1.572 MB / 469.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001769/0.3436, allocations: 1.013 MB / 470.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3437, allocations: 384 / 470.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.345, allocations: 0.8332 MB / 471.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005748/0.3456, allocations: 89.45 kB / 471.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008486/0.354, allocations: 5.088 MB / 476.5 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006154/0.3547, allocations: 0.8909 MB / 477.4 MB, free: 6.902 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.3548, allocations: 56.53 kB / 477.5 MB, free: 6.848 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002365/0.3551, allocations: 171.4 kB / 477.7 MB, free: 6.68 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3551, allocations: 0 / 477.7 MB, free: 6.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08169/0.4368, allocations: 14.47 MB / 492.1 MB, free: 8.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.18, allocations: 11.77 kB / 492.1 MB, free: 8.41 MB / 398.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/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: 17.23595464695245]