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.001714/0.001714, allocations: 112.3 kB / 17.73 MB, free: 5.355 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.002206/0.002206, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.487/1.487, 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.002532/0.002532, allocations: 51.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.144, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.007022/0.1511, allocations: 4.189 MB / 378.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2056/0.3567, allocations: 0.961 MB / 379.8 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006895/0.3574, allocations: 9.125 kB / 379.8 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000499/0.358, allocations: 96.3 kB / 379.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009098/0.359, allocations: 201.1 kB / 380.1 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000455/0.3594, allocations: 160.5 kB / 380.3 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009122/0.3604, allocations: 0.7344 MB / 381 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003475/0.3607, allocations: 225.1 kB / 381.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003438/0.3611, allocations: 283.4 kB / 381.5 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000369/0.3614, allocations: 328.6 kB / 381.8 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.3616, allocations: 59.81 kB / 381.9 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.3617, allocations: 60.75 kB / 381.9 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.3619, allocations: 147.8 kB / 382.1 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003586/0.3623, allocations: 334.1 kB / 382.4 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008041/0.3631, allocations: 0.7072 MB / 383.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3631, allocations: 8.188 kB / 383.1 MB, free: 8.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3631, allocations: 0 / 383.1 MB, free: 8.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.3631, allocations: 0 / 383.1 MB, free: 8.676 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.001394/0.3645, allocations: 0.9244 MB / 384.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3646, allocations: 9.156 kB / 384.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.3647, allocations: 109.2 kB / 384.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.3648, allocations: 76.16 kB / 384.2 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004759/0.3653, allocations: 395 kB / 384.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.3654, allocations: 41.47 kB / 384.7 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.872e-05/0.3654, allocations: 53.19 kB / 384.7 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009617/0.3664, allocations: 0.5741 MB / 385.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.3664, allocations: 0 / 385.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.573e-05/0.3665, allocations: 25.75 kB / 385.3 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.3665, allocations: 15.16 kB / 385.3 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008356/0.3674, allocations: 465.5 kB / 385.8 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002653/0.37, allocations: 2.08 MB / 387.9 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009041/0.3709, allocations: 0.6421 MB / 388.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005881/0.3715, allocations: 402.1 kB / 388.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.3716, allocations: 10.16 kB / 388.9 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.3716, allocations: 39.27 kB / 389 MB, free: 5.336 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 2.023e-06/0.3716, allocations: 0 / 389 MB, free: 5.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.004317/0.3759, allocations: 2.043 MB / 391 MB, free: 4.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.376, allocations: 62.34 kB / 391.1 MB, free: 4.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003763/0.3764, allocations: 361.3 kB / 391.4 MB, free: 3.914 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.727e-05/0.3764, allocations: 34.92 kB / 391.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.3766, allocations: 244.7 kB / 391.7 MB, free: 3.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.3767, allocations: 211.5 kB / 391.9 MB, free: 3.512 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.3768, allocations: 90.39 kB / 392 MB, free: 3.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.099e-05/0.3769, allocations: 361 kB / 392.3 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003188/0.3772, allocations: 169 kB / 392.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.3776, allocations: 217.1 kB / 392.7 MB, free: 2.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006633/0.3783, allocations: 380 kB / 393.1 MB, free: 2.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3783, allocations: 1.25 kB / 393.1 MB, free: 2.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001199/0.3795, allocations: 0.6692 MB / 393.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3795, allocations: 6.625 kB / 393.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3795, allocations: 0 / 393.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007679/0.3803, allocations: 266.4 kB / 394 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.3806, allocations: 60.16 kB / 394.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006873/0.3875, allocations: 7.517 MB / 401.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.388, allocations: 18.62 kB / 401.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.388, allocations: 15.47 kB / 401.6 MB, free: 11.51 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.0003332/0.3884, allocations: 177.9 kB / 401.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.3885, allocations: 56.55 kB / 401.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.3886, allocations: 64.56 kB / 401.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.3886, allocations: 5.25 kB / 401.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.72e-05/0.3886, allocations: 3.344 kB / 401.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.3887, allocations: 3.375 kB / 401.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002327/0.391, allocations: 1.356 MB / 403.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.391, allocations: 0 / 403.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.3913, allocations: 56.34 kB / 403.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007614/0.3921, allocations: 263.5 kB / 403.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.837e-05/0.3921, allocations: 12.02 kB / 403.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007989/0.4001, allocations: 7.5 MB / 411.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4001, allocations: 0.5625 kB / 411.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002198/0.4023, allocations: 1.035 MB / 412.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003047/0.4027, allocations: 170.6 kB / 412.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.4028, allocations: 10.78 kB / 412.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.4031, allocations: 20.08 kB / 412.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.4032, allocations: 48.55 kB / 412.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.373e-05/0.4033, allocations: 18.47 kB / 412.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003406/0.4036, allocations: 261.1 kB / 412.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4036, allocations: 0 / 412.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001089/0.4047, allocations: 174.3 kB / 412.8 MB, free: 2.68 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.002297/0.407, allocations: 1.592 MB / 414.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002021/0.4091, allocations: 1.044 MB / 415.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4091, allocations: 0 / 415.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/0.4104, allocations: 0.8539 MB / 416.3 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006033/0.411, allocations: 91.53 kB / 416.4 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008565/0.4196, allocations: 5.098 MB / 421.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/0.4202, allocations: 0.8831 MB / 422.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.4205, allocations: 52.03 kB / 422.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002352/0.4207, allocations: 172 kB / 422.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.585e-06/0.4207, allocations: 4 kB / 422.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04664/0.4674, allocations: 13.83 MB / 436.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.67, allocations: 3.938 kB / 436.5 MB, free: 14.9 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