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.001169/0.001174, allocations: 109 kB / 17.06 MB, free: 5.969 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.001401/0.001402, allocations: 200 kB / 18.01 MB, free: 5.051 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.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 47.94 kB / 350.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2595, allocations: 49.42 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005181/0.2647, allocations: 4.261 MB / 404.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.2664, allocations: 0.9181 MB / 405.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.2666, allocations: 11.94 kB / 405.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.2669, allocations: 95.06 kB / 405.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004707/0.2674, allocations: 202.2 kB / 405.7 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002949/0.2677, allocations: 159.8 kB / 405.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006213/0.2683, allocations: 0.7361 MB / 406.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/0.2686, allocations: 211.1 kB / 406.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002623/0.2689, allocations: 282.9 kB / 407.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003329/0.2692, allocations: 334.5 kB / 407.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.029e-05/0.2693, allocations: 64 kB / 407.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.121e-05/0.2694, allocations: 60 kB / 407.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.2696, allocations: 147.5 kB / 407.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002776/0.2699, allocations: 326.3 kB / 408 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006524/0.2705, allocations: 0.7157 MB / 408.7 MB, free: 280 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2705, allocations: 0 / 408.7 MB, free: 280 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2705, allocations: 0 / 408.7 MB, free: 280 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.2706, allocations: 0 / 408.7 MB, free: 280 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.001401/0.272, allocations: 0.9293 MB / 409.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.272, allocations: 12.03 kB / 409.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001335/0.2722, allocations: 107.9 kB / 409.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.2723, allocations: 76.47 kB / 409.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.2728, allocations: 390.2 kB / 410.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.2728, allocations: 41.69 kB / 410.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.273e-05/0.2729, allocations: 58.02 kB / 410.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008408/0.2737, allocations: 0.5693 MB / 410.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.2738, allocations: 0 / 410.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.2738, allocations: 24 kB / 410.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.2738, allocations: 12 kB / 410.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007952/0.2746, allocations: 480.8 kB / 411.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.2772, allocations: 2.087 MB / 413.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000839/0.2781, allocations: 0.6397 MB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005381/0.2786, allocations: 394.2 kB / 414.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.2787, allocations: 4.562 kB / 414.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.2787, allocations: 43.12 kB / 414.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 2.004e-06/0.2787, allocations: 3.938 kB / 414.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004202/0.2829, allocations: 2.052 MB / 416.6 MB, free: 8.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.283, allocations: 59.97 kB / 416.7 MB, free: 7.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003453/0.2833, allocations: 357.7 kB / 417 MB, free: 7.574 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.132e-05/0.2834, allocations: 33.7 kB / 417.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.2836, allocations: 245.4 kB / 417.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.2837, allocations: 214.2 kB / 417.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.2838, allocations: 94.2 kB / 417.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.284, allocations: 358.8 kB / 418 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.2843, allocations: 165 kB / 418.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003781/0.2847, allocations: 215.8 kB / 418.3 MB, free: 6.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006249/0.2853, allocations: 376.9 kB / 418.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.2854, allocations: 0 / 418.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001159/0.2865, allocations: 0.6736 MB / 419.4 MB, free: 5.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.2865, allocations: 10.12 kB / 419.4 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2866, allocations: 4 kB / 419.4 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006831/0.2872, allocations: 259.2 kB / 419.6 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.2876, allocations: 63.89 kB / 419.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006164/0.2937, allocations: 7.513 MB / 427.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.2941, allocations: 20.02 kB / 427.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/0.2941, allocations: 16 kB / 427.2 MB, free: 12.74 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.0002153/0.2943, allocations: 169.8 kB / 427.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.2944, allocations: 55.73 kB / 427.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.2945, allocations: 68.94 kB / 427.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2945, allocations: 4 kB / 427.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.2945, allocations: 3.938 kB / 427.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2945, allocations: 7.984 kB / 427.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.2965, allocations: 1.345 MB / 428.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2965, allocations: 0 / 428.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.2968, allocations: 51.95 kB / 428.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000596/0.2974, allocations: 259.1 kB / 429.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.2974, allocations: 12 kB / 429.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005827/0.3032, allocations: 7.522 MB / 436.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3033, allocations: 0 / 436.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.3049, allocations: 1.034 MB / 437.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.3051, allocations: 160.8 kB / 437.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.667e-05/0.3051, allocations: 12 kB / 437.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.3054, allocations: 15.98 kB / 437.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.3055, allocations: 56.48 kB / 438 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.3055, allocations: 12 kB / 438 MB, free: 1.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.3058, allocations: 267.1 kB / 438.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3058, allocations: 0 / 438.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007906/0.3066, allocations: 176 kB / 438.4 MB, free: 0.8438 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.001941/0.3085, allocations: 1.593 MB / 440 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.31, allocations: 1.045 MB / 441.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3101, allocations: 0 / 441.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3111, allocations: 0.8491 MB / 441.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.3116, allocations: 81.61 kB / 442 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006545/0.3181, allocations: 5.064 MB / 447.1 MB, free: 7.961 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.3187, allocations: 0.8792 MB / 448 MB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001632/0.3188, allocations: 56.53 kB / 448 MB, free: 7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.319, allocations: 175.3 kB / 448.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.319, allocations: 0 / 448.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03986/0.3589, allocations: 13.82 MB / 462 MB, free: 9.207 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.51, allocations: 12 kB / 462 MB, free: 9.195 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