Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00143/0.00143, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001736/0.001736, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 56.09 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2818, allocations: 50.55 MB / 408.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance): time 0.007013/0.2888, allocations: 6.644 MB / 415.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003931/0.2928, allocations: 2.258 MB / 417.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006904/0.2935, allocations: 39.88 kB / 417.7 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008131/0.2944, allocations: 385.4 kB / 418.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001921/0.2963, allocations: 0.8433 MB / 418.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007555/0.2971, allocations: 351.3 kB / 419.3 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0032/0.3003, allocations: 3.195 MB / 422.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001944/0.3023, allocations: 1.999 MB / 424.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001527/0.3038, allocations: 1.304 MB / 425.8 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001642/0.3055, allocations: 1.619 MB / 427.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003364/0.3058, allocations: 300 kB / 427.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007589/0.3066, allocations: 427.9 kB / 428.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006551/0.3072, allocations: 0.8568 MB / 428.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001491/0.3087, allocations: 1.462 MB / 430.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004229/0.313, allocations: 4.109 MB / 434.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.313, allocations: 0 / 434.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.313, allocations: 0 / 434.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.296e-05/0.3131, allocations: 0 / 434.5 MB, free: 7.754 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 588 * Number of variables: 588 Notification: Performance of Generate backend data structure: time 0.008412/0.3215, allocations: 3.561 MB / 438.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.3216, allocations: 12.03 kB / 438.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000428/0.322, allocations: 337.1 kB / 438.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004119/0.3261, allocations: 0.7758 MB / 439.2 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003166/0.3293, allocations: 1.735 MB / 440.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.3294, allocations: 169 kB / 441.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003328/0.3298, allocations: 235.9 kB / 441.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00503/0.3348, allocations: 3.195 MB / 444.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/0.3349, allocations: 8 kB / 444.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.3351, allocations: 92 kB / 444.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.078e-05/0.3352, allocations: 73.92 kB / 444.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004559/0.3397, allocations: 2.859 MB / 447.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.014/0.3537, allocations: 9.163 MB / 456.7 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004644/0.3584, allocations: 4.383 MB / 461.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/0.3596, allocations: 0.8139 MB / 461.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00419/0.3638, allocations: 3.15 MB / 465.1 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.3638, allocations: 46.89 kB / 465.1 MB, free: 7.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=92): time 2.514e-06/0.3639, allocations: 0 / 465.1 MB, free: 7.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=100): time 0.007734/0.3716, allocations: 4.29 MB / 469.4 MB, free: 3.336 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.3717, allocations: 119.2 kB / 469.5 MB, free: 3.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/0.3736, allocations: 1.614 MB / 471.1 MB, free: 1.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.257e-05/0.3737, allocations: 45.7 kB / 471.2 MB, free: 1.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006683/0.3743, allocations: 1.145 MB / 472.3 MB, free: 368 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002567/0.3746, allocations: 368.9 kB / 472.7 MB, free: 15.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003243/0.3749, allocations: 246.8 kB / 472.9 MB, free: 15.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3751, allocations: 357.9 kB / 473.3 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009602/0.376, allocations: 0.631 MB / 473.9 MB, free: 14.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.3772, allocations: 1.015 MB / 474.9 MB, free: 13.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/0.3794, allocations: 1.701 MB / 476.6 MB, free: 11.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.3795, allocations: 4 kB / 476.6 MB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003109/0.3826, allocations: 1.945 MB / 478.6 MB, free: 9.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3826, allocations: 12.22 kB / 478.6 MB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.3826, allocations: 12 kB / 478.6 MB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003369/0.383, allocations: 129.6 kB / 478.7 MB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.3842, allocations: 339.5 kB / 479 MB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/0.3869, allocations: 3.43 MB / 482.5 MB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009696/0.3879, allocations: 103.6 kB / 482.6 MB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.792e-05/0.388, allocations: 59.98 kB / 482.6 MB, free: 5.406 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (155): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001258/0.3892, allocations: 0.8367 MB / 483.5 MB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.3895, allocations: 159 kB / 483.6 MB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.3918, allocations: 1.393 MB / 485 MB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.3918, allocations: 8 kB / 485 MB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3919, allocations: 7.938 kB / 485 MB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3919, allocations: 7.984 kB / 485 MB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003492/0.3954, allocations: 2.45 MB / 487.5 MB, free: 452 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.3954, allocations: 3.938 kB / 487.5 MB, free: 448 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007958/0.3962, allocations: 183.8 kB / 487.7 MB, free: 264 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006093/0.3968, allocations: 262.3 kB / 487.9 MB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.976e-05/0.3969, allocations: 36.05 kB / 488 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005251/0.4022, allocations: 6.251 MB / 494.2 MB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4022, allocations: 4.031 kB / 494.2 MB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003724/0.4059, allocations: 2.55 MB / 496.8 MB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/0.4064, allocations: 260 kB / 497 MB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/0.4066, allocations: 31.92 kB / 497.1 MB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008402/0.4074, allocations: 95.91 kB / 497.2 MB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.4076, allocations: 92.16 kB / 497.2 MB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.773e-05/0.4077, allocations: 35.98 kB / 497.3 MB, free: 6.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001448/0.4092, allocations: 1.132 MB / 498.4 MB, free: 5.039 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4092, allocations: 0 / 498.4 MB, free: 5.039 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001451/0.4107, allocations: 451.9 kB / 498.8 MB, free: 4.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (inductor_e.inductor[1].i,inductor_e.inductor[2].i,inductor_e.inductor[3].i,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im,converter_s[1].Phi.re,converter_s[2].Phi.im,converter_s[3].Phi.im) * 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 (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,16,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003976/0.4146, allocations: 3.168 MB / 0.4903 GB, free: 1.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002823/0.4175, allocations: 1.715 MB / 0.4919 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4175, allocations: 1.75 kB / 0.4919 GB, free: 15.64 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.4192, allocations: 1.183 MB / 0.4931 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.4208, allocations: 283.5 kB / 0.4934 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/0.4444, allocations: 17.46 MB / 0.5104 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.4461, allocations: 2.098 MB / 0.5125 GB, free: 10.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001102/0.4472, allocations: 459.5 kB / 0.5129 GB, free: 9.566 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009698/0.4482, allocations: 0.8273 MB / 0.5137 GB, free: 8.742 MB / 446.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4482, allocations: 0 / 0.5137 GB, free: 8.742 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2976/0.7458, allocations: 38.32 MB / 0.5511 GB, free: 123 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.27, allocations: 3.234 kB / 0.5511 GB, free: 123 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/PolyphaseInductance/PolyphaseInductance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches