Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",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.001685/0.001685, allocations: 108 kB / 17.06 MB, free: 5.82 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.001744/0.001744, allocations: 195.9 kB / 18 MB, free: 4.957 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.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 43.94 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3063, allocations: 49.43 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.005106/0.3114, allocations: 3.294 MB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.3141, allocations: 1.296 MB / 404.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004631/0.3146, allocations: 8 kB / 404.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000592/0.3152, allocations: 143.1 kB / 405 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.3167, allocations: 465.5 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.3171, allocations: 166.7 kB / 405.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007357/0.3179, allocations: 450.1 kB / 406 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000257/0.3182, allocations: 140.2 kB / 406.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003/0.3185, allocations: 175.3 kB / 406.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.3188, allocations: 191.2 kB / 406.5 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.062e-05/0.3189, allocations: 39.94 kB / 406.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003664/0.3193, allocations: 163.9 kB / 406.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.654e-05/0.3194, allocations: 79.69 kB / 406.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002013/0.3196, allocations: 199 kB / 407 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008073/0.3204, allocations: 0.5398 MB / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3204, allocations: 0 / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3204, allocations: 0 / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.3204, allocations: 4 kB / 407.5 MB, free: 1.516 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00166/0.3221, allocations: 0.752 MB / 408.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.3222, allocations: 15.83 kB / 408.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.024e-05/0.3222, allocations: 70.72 kB / 408.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000632/0.3229, allocations: 92.66 kB / 408.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005018/0.3234, allocations: 308.7 kB / 408.8 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.3234, allocations: 21.38 kB / 408.8 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.573e-05/0.3235, allocations: 36.38 kB / 408.8 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.3241, allocations: 361.4 kB / 409.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3241, allocations: 0 / 409.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.3242, allocations: 16 kB / 409.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3242, allocations: 8 kB / 409.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.3247, allocations: 250.1 kB / 409.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.3266, allocations: 1.308 MB / 410.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.3269, allocations: 201.1 kB / 410.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.3271, allocations: 89.67 kB / 411 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007712/0.3279, allocations: 0.8675 MB / 411.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3279, allocations: 34.56 kB / 411.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.328, allocations: 0 / 411.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005358/0.3285, allocations: 225.3 kB / 412.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.3286, allocations: 89.11 kB / 412.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.3288, allocations: 291 kB / 412.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.3288, allocations: 25.7 kB / 412.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.329, allocations: 240 kB / 412.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.329, allocations: 67.42 kB / 412.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.412e-05/0.3291, allocations: 65.98 kB / 412.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3293, allocations: 334.8 kB / 413.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.3294, allocations: 68.61 kB / 413.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.3296, allocations: 202.6 kB / 413.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003702/0.33, allocations: 288.8 kB / 413.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.33, allocations: 8 kB / 413.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005091/0.3305, allocations: 317.1 kB / 414.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3306, allocations: 4 kB / 414.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3306, allocations: 4 kB / 414.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.3306, allocations: 12.5 kB / 414.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3309, allocations: 83.83 kB / 414.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.3309, allocations: 8 kB / 414.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.3311, allocations: 39.73 kB / 414.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.3311, allocations: 19.98 kB / 414.3 MB, free: 10.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001398/0.3313, allocations: 157.7 kB / 414.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.3314, allocations: 31.8 kB / 414.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.3314, allocations: 29.73 kB / 414.5 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3314, allocations: 11.88 kB / 414.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.3314, allocations: 4 kB / 414.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.3315, allocations: 3.938 kB / 414.5 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006402/0.3321, allocations: 0.4992 MB / 415 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3321, allocations: 3.938 kB / 415 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.3323, allocations: 47.97 kB / 415.1 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3323, allocations: 4.031 kB / 415.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.3324, allocations: 4 kB / 415.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.3324, allocations: 3.984 kB / 415.1 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3324, allocations: 7.938 kB / 415.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005202/0.3329, allocations: 419.3 kB / 415.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.066e-05/0.333, allocations: 104.9 kB / 415.6 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.333, allocations: 4 kB / 415.6 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.3332, allocations: 15.98 kB / 415.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.646e-05/0.3333, allocations: 11.98 kB / 415.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.3333, allocations: 4 kB / 415.6 MB, free: 8.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.3335, allocations: 198 kB / 415.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3335, allocations: 0 / 415.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004175/0.3339, allocations: 91.84 kB / 415.9 MB, free: 8.488 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009086/0.3348, allocations: 0.9727 MB / 416.9 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000399/0.3353, allocations: 188.7 kB / 417.1 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3353, allocations: 0 / 417.1 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.3354, allocations: 71.84 kB / 417.1 MB, free: 7.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.3358, allocations: 33.09 kB / 417.2 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003546/0.3394, allocations: 3.114 MB / 420.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.3397, allocations: 0.7713 MB / 421 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.3399, allocations: 34.97 kB / 421.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.34, allocations: 107.4 kB / 421.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.34, allocations: 0 / 421.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.3647, allocations: 5.508 MB / 426.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.838/8.203, allocations: 4 kB / 426.7 MB, free: 13.59 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/SinglePhaseInductance/SinglePhaseInductance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches