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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 110 kB / 17.06 MB, free: 6.023 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.001095/0.001095, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008913/0.0008914, allocations: 43.94 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3017, allocations: 49.44 MB / 400.3 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006663/0.3084, allocations: 4.241 MB / 404.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.3104, allocations: 0.9307 MB / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005094/0.311, allocations: 11.94 kB / 405.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003775/0.3114, allocations: 95.02 kB / 405.5 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007735/0.3122, allocations: 194.2 kB / 405.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.3126, allocations: 163.8 kB / 405.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009546/0.3136, allocations: 0.7322 MB / 406.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004013/0.314, allocations: 215.1 kB / 406.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004269/0.3145, allocations: 282.9 kB / 407.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004454/0.3149, allocations: 330.6 kB / 407.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.315, allocations: 60 kB / 407.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.3152, allocations: 60 kB / 407.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.3154, allocations: 147.4 kB / 407.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003507/0.3157, allocations: 322.3 kB / 408 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007128/0.3165, allocations: 0.7239 MB / 408.7 MB, free: 348 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3165, allocations: 0 / 408.7 MB, free: 348 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3165, allocations: 3.938 kB / 408.7 MB, free: 344 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.737e-05/0.3165, allocations: 0 / 408.7 MB, free: 344 kB / 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.001783/0.3183, allocations: 0.908 MB / 409.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3184, allocations: 12.03 kB / 409.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.3185, allocations: 111.9 kB / 409.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.3187, allocations: 68.09 kB / 409.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/0.3194, allocations: 389.9 kB / 410.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.043e-05/0.3194, allocations: 37.69 kB / 410.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-05/0.3195, allocations: 60.38 kB / 410.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.3205, allocations: 0.5732 MB / 410.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3206, allocations: 0 / 410.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.923e-05/0.3206, allocations: 24 kB / 410.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.3206, allocations: 12 kB / 410.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009201/0.3216, allocations: 468.9 kB / 411.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003089/0.3247, allocations: 2.082 MB / 413.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009842/0.3257, allocations: 0.6415 MB / 414.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000607/0.3263, allocations: 402.2 kB / 414.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.3263, allocations: 4.562 kB / 414.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/0.3264, allocations: 39.12 kB / 414.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 2.004e-06/0.3264, allocations: 4 kB / 414.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004714/0.3311, allocations: 2.04 MB / 416.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.3312, allocations: 55.97 kB / 416.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004082/0.3316, allocations: 361.7 kB / 417 MB, free: 7.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.3317, allocations: 33.7 kB / 417 MB, free: 7.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.3319, allocations: 252.9 kB / 417.3 MB, free: 7.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.3321, allocations: 193.1 kB / 417.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.3322, allocations: 90.23 kB / 417.5 MB, free: 7.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.3324, allocations: 358.7 kB / 417.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.3328, allocations: 169 kB / 418.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.3331, allocations: 215.8 kB / 418.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006642/0.3338, allocations: 380.8 kB / 418.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3338, allocations: 0 / 418.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001284/0.3351, allocations: 0.6695 MB / 419.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3352, allocations: 4 kB / 419.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3352, allocations: 4 kB / 419.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007486/0.3359, allocations: 255.2 kB / 419.6 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.3362, allocations: 63.89 kB / 419.6 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007286/0.3435, allocations: 7.501 MB / 427.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.3439, allocations: 16.03 kB / 427.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.351e-05/0.344, allocations: 16.09 kB / 427.2 MB, free: 12.88 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.0003153/0.3443, allocations: 177.8 kB / 427.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3445, allocations: 51.38 kB / 427.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.3446, allocations: 64.95 kB / 427.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3446, allocations: 7.938 kB / 427.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.3446, allocations: 7.984 kB / 427.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3446, allocations: 0 / 427.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002382/0.347, allocations: 1.352 MB / 428.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3471, allocations: 0 / 428.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.3474, allocations: 51.97 kB / 428.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006879/0.3481, allocations: 267.4 kB / 429.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.3481, allocations: 12 kB / 429.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006857/0.355, allocations: 7.509 MB / 436.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.355, allocations: 0 / 436.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.3569, allocations: 1.026 MB / 437.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.3571, allocations: 160.5 kB / 437.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.869e-05/0.3572, allocations: 12 kB / 437.8 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.3575, allocations: 11.98 kB / 437.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.3576, allocations: 60.48 kB / 437.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.3577, allocations: 15.94 kB / 437.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002613/0.3579, allocations: 255.2 kB / 438.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.358, allocations: 0 / 438.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009168/0.3589, allocations: 180 kB / 438.3 MB, free: 0.9961 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.002197/0.3611, allocations: 1.593 MB / 439.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.3629, allocations: 1.049 MB / 441 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3629, allocations: 0 / 441 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.3641, allocations: 0.8452 MB / 441.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006197/0.3647, allocations: 81.84 kB / 441.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007544/0.3723, allocations: 5.061 MB / 447 MB, free: 8.113 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000626/0.3729, allocations: 0.8831 MB / 447.9 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.3732, allocations: 52.53 kB / 447.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002197/0.3734, allocations: 171.4 kB / 448.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3734, allocations: 0 / 448.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06738/0.4408, allocations: 13.82 MB / 461.9 MB, free: 9.363 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.85, allocations: 7.875 kB / 461.9 MB, free: 9.355 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.csv","/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) Reference file matches