Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001364/0.001364, allocations: 109.6 kB / 21.18 MB, free: 0.7188 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.002134/0.002134, allocations: 216.7 kB / 24.49 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 54.89 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.317, allocations: 49.16 MB / 396.4 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.00648/0.3234, allocations: 4.221 MB / 400.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.3263, allocations: 0.969 MB / 401.6 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008831/0.3272, allocations: 12.5 kB / 401.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005559/0.3277, allocations: 93.83 kB / 401.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001083/0.3288, allocations: 204.3 kB / 401.9 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005443/0.3294, allocations: 155.3 kB / 402 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009637/0.3303, allocations: 0.7368 MB / 402.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003558/0.3307, allocations: 165.4 kB / 402.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000407/0.3311, allocations: 288.7 kB / 403.2 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004865/0.3316, allocations: 329 kB / 403.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.3317, allocations: 61.16 kB / 403.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.3318, allocations: 61.47 kB / 403.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002012/0.332, allocations: 150.2 kB / 403.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003405/0.3324, allocations: 334.2 kB / 404.1 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009611/0.3333, allocations: 0.717 MB / 404.8 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3333, allocations: 0 / 404.8 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.3334, allocations: 5.312 kB / 404.8 MB, free: 4 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.3334, allocations: 0 / 404.8 MB, free: 4 MB / 318.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.001562/0.3349, allocations: 0.8576 MB / 405.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.448e-05/0.335, allocations: 12.77 kB / 405.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001853/0.3352, allocations: 102.6 kB / 405.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.3353, allocations: 76.06 kB / 405.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005109/0.3358, allocations: 325.7 kB / 406.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.966e-05/0.3359, allocations: 43.19 kB / 406.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.183e-05/0.3359, allocations: 61.19 kB / 406.3 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.337, allocations: 0.5774 MB / 406.9 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.337, allocations: 0 / 406.9 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.3371, allocations: 25.19 kB / 406.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.3371, allocations: 14.34 kB / 406.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008875/0.338, allocations: 470.5 kB / 407.4 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.3407, allocations: 2.025 MB / 409.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008706/0.3415, allocations: 0.5242 MB / 409.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006754/0.3422, allocations: 354.3 kB / 410.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.007e-05/0.3423, allocations: 7.312 kB / 410.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.3423, allocations: 45.7 kB / 410.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 3.036e-06/0.3423, allocations: 0 / 410.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.004916/0.3472, allocations: 1.721 MB / 412 MB, free: 15.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.395e-05/0.3473, allocations: 61.47 kB / 412.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000517/0.3478, allocations: 367.5 kB / 412.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.3478, allocations: 36.05 kB / 412.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.3481, allocations: 250.2 kB / 412.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.3483, allocations: 205.8 kB / 412.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/0.3485, allocations: 90.7 kB / 413 MB, free: 15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.3488, allocations: 361.3 kB / 413.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003634/0.3491, allocations: 168.6 kB / 413.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004565/0.3496, allocations: 215.8 kB / 413.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007296/0.3503, allocations: 380.5 kB / 414.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3503, allocations: 0 / 414.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001356/0.3517, allocations: 0.6586 MB / 414.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.3517, allocations: 9 kB / 414.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.3517, allocations: 1.062 kB / 414.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000783/0.3525, allocations: 251.8 kB / 415 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003405/0.3528, allocations: 65.86 kB / 415.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00887/0.3617, allocations: 7.096 MB / 422.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004461/0.3621, allocations: 19.34 kB / 422.2 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.3622, allocations: 18.27 kB / 422.2 MB, free: 7.062 MB / 334.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.0003401/0.3625, allocations: 175.5 kB / 422.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3626, allocations: 56.36 kB / 422.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.3628, allocations: 63.45 kB / 422.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3628, allocations: 9.609 kB / 422.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.3628, allocations: 1.094 kB / 422.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3628, allocations: 1.094 kB / 422.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.3651, allocations: 1.308 MB / 423.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.3651, allocations: 0 / 423.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002682/0.3654, allocations: 54.88 kB / 423.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006655/0.366, allocations: 262.8 kB / 424.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/0.3661, allocations: 14.73 kB / 424.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007247/0.3733, allocations: 7.083 MB / 431.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3733, allocations: 3.938 kB / 431.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.3753, allocations: 1.021 MB / 432.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.3755, allocations: 79.66 kB / 432.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.48e-05/0.3756, allocations: 16 kB / 432.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.3758, allocations: 19.98 kB / 432.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.376, allocations: 52.39 kB / 432.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.376, allocations: 15.94 kB / 432.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003069/0.3763, allocations: 259.2 kB / 432.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3763, allocations: 0 / 432.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009618/0.3773, allocations: 180 kB / 432.9 MB, free: 13.71 MB / 350.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.002229/0.3795, allocations: 1.584 MB / 434.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.3812, allocations: 1.009 MB / 435.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3813, allocations: 0 / 435.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.3825, allocations: 0.8254 MB / 436.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005761/0.3831, allocations: 89.42 kB / 436.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008098/0.3912, allocations: 5.063 MB / 441.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/0.3917, allocations: 0.8831 MB / 442.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001715/0.3919, allocations: 48.55 kB / 442.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002372/0.3921, allocations: 171.4 kB / 442.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3921, allocations: 0 / 442.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07493/0.4671, allocations: 14.4 MB / 457 MB, free: 5.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/15.18, allocations: 12.88 kB / 457 MB, free: 5.281 MB / 366.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 18.613837600918487]