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.001828/0.001828, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.00226/0.00226, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 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: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 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: "" <> 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 0.001756/0.001756, allocations: 47.94 kB / 370.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2352, allocations: 52.18 MB / 422.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005952/0.2412, allocations: 4.282 MB / 426.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.2431, allocations: 0.9341 MB / 427.9 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004124/0.2435, allocations: 11.94 kB / 427.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003606/0.2439, allocations: 98.95 kB / 428 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006858/0.2446, allocations: 206.3 kB / 428.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.245, allocations: 163.7 kB / 428.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000988/0.246, allocations: 0.7244 MB / 429.1 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003153/0.2463, allocations: 167.6 kB / 429.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004475/0.2467, allocations: 286.9 kB / 429.5 MB, free: 7.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000531/0.2473, allocations: 326.5 kB / 429.8 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.2474, allocations: 60 kB / 429.9 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.2475, allocations: 64 kB / 429.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.2477, allocations: 143.5 kB / 430.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004065/0.2481, allocations: 334.3 kB / 430.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008863/0.249, allocations: 0.7196 MB / 431.1 MB, free: 6.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.249, allocations: 0 / 431.1 MB, free: 6.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.249, allocations: 4 kB / 431.1 MB, free: 6.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.249, allocations: 0 / 431.1 MB, free: 6.059 MB / 334.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.001599/0.2506, allocations: 0.8477 MB / 432 MB, free: 5.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.2507, allocations: 12.03 kB / 432 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000165/0.2508, allocations: 103.9 kB / 432.1 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.251, allocations: 76.47 kB / 432.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006218/0.2516, allocations: 344.3 kB / 432.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.2516, allocations: 37.69 kB / 432.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.647e-05/0.2517, allocations: 56.38 kB / 432.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009807/0.2527, allocations: 0.5654 MB / 433.2 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.2527, allocations: 11.92 kB / 433.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.876e-05/0.2528, allocations: 20 kB / 433.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.2528, allocations: 16 kB / 433.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008879/0.2537, allocations: 465 kB / 433.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002893/0.2566, allocations: 2.021 MB / 435.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009228/0.2575, allocations: 0.5229 MB / 436.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000577/0.2581, allocations: 366.7 kB / 436.6 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.2581, allocations: 4.5 kB / 436.6 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.2581, allocations: 47.05 kB / 436.6 MB, free: 380 kB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 1.833e-06/0.2581, allocations: 0 / 436.6 MB, free: 380 kB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004179/0.2623, allocations: 1.717 MB / 438.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.2624, allocations: 59.91 kB / 438.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/0.2628, allocations: 365.7 kB / 438.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.2628, allocations: 37.64 kB / 438.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.263, allocations: 249.3 kB / 439 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.2631, allocations: 214.2 kB / 439.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.2633, allocations: 90.34 kB / 439.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.2635, allocations: 358.7 kB / 439.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.2638, allocations: 165.2 kB / 439.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/0.2642, allocations: 224.8 kB / 440.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006644/0.2648, allocations: 370.2 kB / 440.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.2648, allocations: 0 / 440.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001187/0.266, allocations: 0.6641 MB / 441.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.266, allocations: 4 kB / 441.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.266, allocations: 4 kB / 441.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006981/0.2667, allocations: 259.2 kB / 441.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.267, allocations: 59.95 kB / 441.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00707/0.2741, allocations: 7.084 MB / 448.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.2743, allocations: 20.58 kB / 448.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.2744, allocations: 16 kB / 448.5 MB, free: 3.879 MB / 350.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.0002325/0.2746, allocations: 177.8 kB / 448.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.888e-05/0.2747, allocations: 55.61 kB / 448.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.2748, allocations: 72.94 kB / 448.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2748, allocations: 7.938 kB / 448.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.2748, allocations: 7.938 kB / 448.8 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2748, allocations: 3.984 kB / 448.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.2771, allocations: 1.307 MB / 450.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2771, allocations: 0 / 450.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.2774, allocations: 63.89 kB / 450.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006629/0.278, allocations: 251.2 kB / 450.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.2781, allocations: 8 kB / 450.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00728/0.2854, allocations: 7.091 MB / 457.6 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2854, allocations: 4.031 kB / 457.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001883/0.2872, allocations: 1.01 MB / 458.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002312/0.2875, allocations: 79.66 kB / 458.6 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.2875, allocations: 19.98 kB / 458.7 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.2878, allocations: 16 kB / 458.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.288, allocations: 52.39 kB / 458.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.288, allocations: 19.92 kB / 458.8 MB, free: 9.086 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00033/0.2883, allocations: 267 kB / 459 MB, free: 8.824 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2883, allocations: 0 / 459 MB, free: 8.824 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009758/0.2893, allocations: 176 kB / 459.2 MB, free: 8.652 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.002268/0.2916, allocations: 1.584 MB / 460.8 MB, free: 7.023 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.2933, allocations: 1.013 MB / 461.8 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2934, allocations: 0 / 461.8 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.2946, allocations: 0.8176 MB / 462.6 MB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005338/0.2951, allocations: 100.8 kB / 462.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008264/0.3034, allocations: 5.054 MB / 467.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006661/0.304, allocations: 0.8871 MB / 468.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.3042, allocations: 48.53 kB / 468.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002447/0.3045, allocations: 171.4 kB / 468.9 MB, free: 14.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3045, allocations: 8 kB / 468.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06211/0.3666, allocations: 14.38 MB / 483.2 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/13.84, allocations: 3.938 kB / 483.2 MB, free: 0.5234 MB / 382.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/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: 16.842027904000133]