Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.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.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance",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.001193/0.001194, allocations: 114.4 kB / 17.74 MB, free: 5.344 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.001328/0.001329, allocations: 183.1 kB / 18.66 MB, free: 4.422 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.5/1.5, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001341/0.001341, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09169, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance): time 0.006903/0.09864, allocations: 4.61 MB / 379.3 MB, free: 464 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1966/0.2953, allocations: 1.734 MB / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004713/0.2959, allocations: 23.72 kB / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007106/0.2966, allocations: 266.2 kB / 381.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001783/0.2984, allocations: 0.6995 MB / 382 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006221/0.2991, allocations: 235.2 kB / 382.2 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002397/0.3015, allocations: 1.89 MB / 384.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.3028, allocations: 1.263 MB / 385.4 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.3041, allocations: 0.7934 MB / 386.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001253/0.3054, allocations: 0.9779 MB / 387.1 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002736/0.3057, allocations: 185 kB / 387.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007316/0.3064, allocations: 309.5 kB / 387.6 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004912/0.3069, allocations: 0.5318 MB / 388.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009636/0.3079, allocations: 0.8896 MB / 389 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003068/0.311, allocations: 2.582 MB / 391.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.311, allocations: 0 / 391.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.311, allocations: 0 / 391.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.171e-05/0.3111, allocations: 0 / 391.6 MB, free: 5.57 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: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.005114/0.3162, allocations: 2.213 MB / 393.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.3163, allocations: 12.78 kB / 393.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000294/0.3166, allocations: 213.5 kB / 394 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001893/0.3185, allocations: 374.3 kB / 394.4 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/0.3205, allocations: 1.055 MB / 395.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.773e-05/0.3205, allocations: 99.42 kB / 395.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002344/0.3208, allocations: 139.8 kB / 395.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003191/0.324, allocations: 1.886 MB / 397.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.324, allocations: 4 kB / 397.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.3242, allocations: 57.36 kB / 397.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.296e-05/0.3242, allocations: 47.22 kB / 397.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002868/0.3271, allocations: 1.681 MB / 399.4 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009637/0.3368, allocations: 5.531 MB / 404.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003689/0.3405, allocations: 2.91 MB / 407.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008445/0.3414, allocations: 0.4997 MB / 408.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002871/0.3443, allocations: 1.528 MB / 409.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.3443, allocations: 45.84 kB / 409.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=53): time 2.765e-06/0.3443, allocations: 0 / 409.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=53): time 0.004173/0.3485, allocations: 1.406 MB / 411.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.862e-05/0.3486, allocations: 86.55 kB / 411.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/0.351, allocations: 1.033 MB / 412.4 MB, free: 8.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.3511, allocations: 36.7 kB / 412.4 MB, free: 8.184 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006226/0.3517, allocations: 0.6915 MB / 413.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.352, allocations: 202.9 kB / 413.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/0.3522, allocations: 123.9 kB / 413.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.3523, allocations: 338.2 kB / 413.8 MB, free: 7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006222/0.3529, allocations: 361 kB / 414.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007728/0.3537, allocations: 0.5121 MB / 414.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.3552, allocations: 0.8788 MB / 415.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.3552, allocations: 4 kB / 415.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001873/0.3571, allocations: 1.006 MB / 416.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.3571, allocations: 16.02 kB / 416.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3571, allocations: 4 kB / 416.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.3572, allocations: 15.88 kB / 416.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008276/0.358, allocations: 175.8 kB / 416.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.358, allocations: 11.94 kB / 416.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000724/0.3588, allocations: 87.47 kB / 416.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-05/0.3588, allocations: 35.98 kB / 416.9 MB, free: 4.055 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (82): * Single equations (assignments): 82 * 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.0008917/0.3597, allocations: 0.5211 MB / 417.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.3599, allocations: 91.44 kB / 417.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.3612, allocations: 0.6863 MB / 418.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.3612, allocations: 8 kB / 418.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.3612, allocations: 0 / 418.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3613, allocations: 11.92 kB / 418.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002614/0.3639, allocations: 1.663 MB / 419.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3639, allocations: 0 / 419.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004452/0.3643, allocations: 91.88 kB / 419.9 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004303/0.3648, allocations: 157.8 kB / 420.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.3648, allocations: 20.27 kB / 420.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/0.3678, allocations: 2.844 MB / 423 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3678, allocations: 0 / 423 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.3701, allocations: 1.481 MB / 424.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/0.3704, allocations: 200.4 kB / 424.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.3706, allocations: 19.98 kB / 424.7 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.3711, allocations: 59.88 kB / 424.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.3713, allocations: 51.92 kB / 424.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.875e-05/0.3713, allocations: 12 kB / 424.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009843/0.3723, allocations: 0.7371 MB / 425.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3723, allocations: 0 / 425.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001089/0.3734, allocations: 362.9 kB / 425.9 MB, free: 10.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (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) * 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 (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002686/0.3761, allocations: 2.066 MB / 427.9 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.3775, allocations: 0.7837 MB / 428.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3775, allocations: 1.125 kB / 428.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.3785, allocations: 0.5902 MB / 429.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.3796, allocations: 180 kB / 429.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/0.3942, allocations: 10.56 MB / 440 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.3953, allocations: 1.491 MB / 441.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006183/0.3959, allocations: 234.7 kB / 441.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000575/0.3965, allocations: 495.2 kB / 442.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3965, allocations: 0 / 442.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05521/0.4517, allocations: 23.07 MB / 465.3 MB, free: 2.895 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.62, allocations: 0 / 465.3 MB, free: 2.895 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_Components_MultiPhaseInductance.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/Components/MultiPhaseInductance/MultiPhaseInductance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.Components.MultiPhaseInductance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches