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.001567/0.001567, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.00195/0.00195, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.446/1.446, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009936/0.0009937, allocations: 47.95 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09446/0.09547, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005745/0.1013, allocations: 4.244 MB / 354.4 MB, free: 80 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.1034, allocations: 0.919 MB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006021/0.104, allocations: 8 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004755/0.1046, allocations: 95.02 kB / 355.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.1056, allocations: 198.3 kB / 355.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.1063, allocations: 167.7 kB / 355.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.1074, allocations: 0.7206 MB / 356.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004106/0.1078, allocations: 223 kB / 356.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004407/0.1083, allocations: 282.9 kB / 357 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004668/0.1087, allocations: 330.5 kB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.1089, allocations: 60 kB / 357.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.109, allocations: 60 kB / 357.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001672/0.1092, allocations: 147.5 kB / 357.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003093/0.1095, allocations: 334.3 kB / 357.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006415/0.1102, allocations: 0.7005 MB / 358.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1102, allocations: 0 / 358.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1102, allocations: 0 / 358.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1102, allocations: 8 kB / 358.6 MB, free: 11.84 MB / 302.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.001461/0.1117, allocations: 0.908 MB / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1118, allocations: 8.031 kB / 359.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001554/0.1119, allocations: 111.8 kB / 359.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.1121, allocations: 72.09 kB / 359.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004491/0.1125, allocations: 378 kB / 360.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.1125, allocations: 45.62 kB / 360.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.696e-05/0.1126, allocations: 52.38 kB / 360.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009662/0.1136, allocations: 0.5771 MB / 360.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1136, allocations: 3.938 kB / 360.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.1137, allocations: 20 kB / 360.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.1137, allocations: 16 kB / 360.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008252/0.1146, allocations: 469 kB / 361.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/0.1173, allocations: 2.09 MB / 363.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008863/0.1182, allocations: 0.6375 MB / 364 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005511/0.1188, allocations: 406 kB / 364.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.1188, allocations: 4.562 kB / 364.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.1189, allocations: 43.12 kB / 364.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.685e-06/0.1189, allocations: 0 / 364.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004183/0.1231, allocations: 2.032 MB / 366.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.1231, allocations: 63.97 kB / 366.5 MB, free: 3.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.1235, allocations: 353.7 kB / 366.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.1235, allocations: 37.7 kB / 366.9 MB, free: 3.156 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.1237, allocations: 245 kB / 367.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.1238, allocations: 201.1 kB / 367.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.124, allocations: 102.1 kB / 367.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1241, allocations: 358.7 kB / 367.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.1244, allocations: 169 kB / 367.9 MB, free: 2.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.1248, allocations: 215.8 kB / 368.2 MB, free: 1.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006406/0.1254, allocations: 372.9 kB / 368.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1254, allocations: 0 / 368.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001124/0.1266, allocations: 0.6695 MB / 369.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1266, allocations: 7.984 kB / 369.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1266, allocations: 0 / 369.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007102/0.1273, allocations: 267.1 kB / 369.5 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.1276, allocations: 63.95 kB / 369.5 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1647/0.2923, allocations: 7.494 MB / 377 MB, free: 19.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000296/0.2927, allocations: 17.89 kB / 377 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.2927, allocations: 16.66 kB / 377 MB, free: 19.6 MB / 302.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.0002038/0.2929, allocations: 181.3 kB / 377.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.133e-05/0.293, allocations: 50.81 kB / 377.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.2931, allocations: 67.25 kB / 377.3 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.2931, allocations: 6.328 kB / 377.3 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.2931, allocations: 2.406 kB / 377.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.2931, allocations: 4.297 kB / 377.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.2952, allocations: 1.348 MB / 378.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2952, allocations: 4.094 kB / 378.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.2955, allocations: 60.06 kB / 378.8 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007266/0.2963, allocations: 268 kB / 379 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.2963, allocations: 12.86 kB / 379 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005155/0.3015, allocations: 7.5 MB / 386.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3015, allocations: 0 / 386.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.3031, allocations: 1.033 MB / 387.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.3033, allocations: 158.2 kB / 387.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.262e-05/0.3034, allocations: 16.75 kB / 387.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.3036, allocations: 17.25 kB / 387.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.3038, allocations: 53.2 kB / 387.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.3038, allocations: 15.31 kB / 387.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002692/0.3041, allocations: 256.9 kB / 388.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3041, allocations: 0 / 388.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009264/0.305, allocations: 180.3 kB / 388.3 MB, free: 10.88 MB / 302.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.00182/0.3069, allocations: 1.588 MB / 389.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3084, allocations: 1.066 MB / 390.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3084, allocations: 1.781 kB / 390.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009401/0.3094, allocations: 0.847 MB / 391.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005753/0.31, allocations: 98.09 kB / 391.9 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006676/0.3166, allocations: 5.198 MB / 397.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.3171, allocations: 0.888 MB / 397.9 MB, free: 4.758 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.3173, allocations: 50.38 kB / 398 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.3175, allocations: 167.7 kB / 398.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3175, allocations: 0 / 398.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06925/0.3867, allocations: 13.54 MB / 411.7 MB, free: 11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.69, allocations: 8.703 kB / 411.7 MB, free: 10.99 MB / 318.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