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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 110.4 kB / 17.73 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001324, allocations: 183.1 kB / 18.66 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002592/0.002592, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1256, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.009198/0.1349, allocations: 4.201 MB / 378.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2089/0.3438, allocations: 0.9512 MB / 379.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006307/0.3445, allocations: 11.22 kB / 379.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003102/0.3449, allocations: 100.7 kB / 379.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006101/0.3455, allocations: 192.1 kB / 380.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.3459, allocations: 164.9 kB / 380.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008728/0.3468, allocations: 0.7331 MB / 381 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.3471, allocations: 222 kB / 381.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004787/0.3476, allocations: 280.1 kB / 381.5 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004089/0.348, allocations: 331.5 kB / 381.8 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.3482, allocations: 60.19 kB / 381.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.3484, allocations: 61.09 kB / 381.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.3486, allocations: 150.6 kB / 382.1 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004015/0.349, allocations: 329.6 kB / 382.4 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.35, allocations: 0.704 MB / 383.1 MB, free: 8.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.35, allocations: 5.062 kB / 383.1 MB, free: 8.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.35, allocations: 4 kB / 383.1 MB, free: 8.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.3501, allocations: 0 / 383.1 MB, free: 8.238 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.001792/0.3519, allocations: 0.9288 MB / 384.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.3519, allocations: 8.688 kB / 384.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.3521, allocations: 115.2 kB / 384.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.3523, allocations: 75.41 kB / 384.2 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006509/0.3529, allocations: 391.1 kB / 384.6 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.353, allocations: 41.91 kB / 384.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.663e-05/0.3531, allocations: 56.66 kB / 384.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.3541, allocations: 0.567 MB / 385.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.3541, allocations: 4 kB / 385.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.678e-05/0.3542, allocations: 23.88 kB / 385.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.3542, allocations: 13.44 kB / 385.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008999/0.3551, allocations: 467.2 kB / 385.8 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002885/0.358, allocations: 2.077 MB / 387.9 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009964/0.359, allocations: 0.6454 MB / 388.5 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006257/0.3597, allocations: 399.5 kB / 388.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.488e-05/0.3597, allocations: 7.25 kB / 388.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.3598, allocations: 43.28 kB / 389 MB, free: 5.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 2.495e-06/0.3598, allocations: 0 / 389 MB, free: 5.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.0047/0.3645, allocations: 2.047 MB / 391 MB, free: 4.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.3645, allocations: 57.59 kB / 391.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004015/0.365, allocations: 365 kB / 391.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.365, allocations: 36.61 kB / 391.4 MB, free: 3.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3651, allocations: 243.8 kB / 391.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.3653, allocations: 212.6 kB / 391.9 MB, free: 3.363 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.3654, allocations: 90.36 kB / 392 MB, free: 3.312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.561e-05/0.3655, allocations: 358.7 kB / 392.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003519/0.3659, allocations: 165.6 kB / 392.5 MB, free: 2.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.3663, allocations: 216.7 kB / 392.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006474/0.367, allocations: 381.7 kB / 393.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.367, allocations: 1.375 kB / 393.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001258/0.3682, allocations: 0.6712 MB / 393.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3683, allocations: 6.156 kB / 393.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.3683, allocations: 9.062 kB / 393.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007498/0.369, allocations: 253.3 kB / 394 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.3694, allocations: 68.45 kB / 394.1 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007634/0.377, allocations: 7.504 MB / 401.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004612/0.3775, allocations: 19.14 kB / 401.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.372e-05/0.3776, allocations: 15.06 kB / 401.6 MB, free: 11.35 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.0003693/0.378, allocations: 173.2 kB / 401.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3781, allocations: 57.16 kB / 401.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.3783, allocations: 67.53 kB / 401.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3783, allocations: 6.844 kB / 401.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.3783, allocations: 2.188 kB / 401.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3783, allocations: 2.625 kB / 401.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.3809, allocations: 1.352 MB / 403.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.381, allocations: 4.453 kB / 403.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002987/0.3813, allocations: 64.12 kB / 403.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007606/0.382, allocations: 256.4 kB / 403.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.645e-05/0.3821, allocations: 11.77 kB / 403.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008144/0.3903, allocations: 7.505 MB / 411.1 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.3903, allocations: 0 / 411.1 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.3926, allocations: 1.039 MB / 412.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003328/0.393, allocations: 157.9 kB / 412.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.3931, allocations: 15.67 kB / 412.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.3934, allocations: 17.91 kB / 412.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.3936, allocations: 55.23 kB / 412.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.515e-05/0.3937, allocations: 13.78 kB / 412.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.394, allocations: 260.7 kB / 412.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.394, allocations: 0 / 412.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001039/0.3951, allocations: 173.3 kB / 412.8 MB, free: 2.516 MB / 334.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.002466/0.3976, allocations: 1.591 MB / 414.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.3995, allocations: 1.053 MB / 415.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3995, allocations: 0 / 415.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.4008, allocations: 0.8515 MB / 416.3 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/0.4015, allocations: 83.48 kB / 416.4 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008315/0.4098, allocations: 5.116 MB / 421.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006421/0.4105, allocations: 0.8839 MB / 422.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002635/0.4107, allocations: 51.5 kB / 422.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.411, allocations: 166.7 kB / 422.6 MB, free: 12 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.411, allocations: 1.938 kB / 422.6 MB, free: 12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05669/0.4677, allocations: 13.83 MB / 436.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/14.86, allocations: 0 / 436.4 MB, free: 14.8 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.csv","/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) Reference file matches