Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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.BasicMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",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.00147/0.00147, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001567/0.001567, allocations: 188.2 kB / 18.66 MB, free: 4.391 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.606/1.606, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001513/0.001513, allocations: 55.91 kB / 328.1 MB, free: 3.75 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1045, allocations: 46.61 MB / 374.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.2076/0.3122, allocations: 13.57 MB / 388.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.3229, allocations: 4.873 MB / 393.1 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003585/0.3265, allocations: 67.69 kB / 393.2 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004269/0.3308, allocations: 1.076 MB / 394.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006422/0.3373, allocations: 1.439 MB / 395.7 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003548/0.3409, allocations: 0.9737 MB / 396.7 MB, free: 208 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008215/0.3491, allocations: 4.328 MB / 401 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005414/0.3546, allocations: 3.289 MB / 404.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005815/0.3604, allocations: 2.026 MB / 406.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005765/0.3663, allocations: 2.269 MB / 408.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002226/0.3685, allocations: 0.5346 MB / 409.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004014/0.3726, allocations: 0.914 MB / 410 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002704/0.3753, allocations: 1.362 MB / 411.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005488/0.3808, allocations: 2.349 MB / 413.8 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01292/0.3938, allocations: 7.357 MB / 421.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3938, allocations: 0 / 421.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3938, allocations: 0 / 421.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000243/0.3941, allocations: 0 / 421.1 MB, free: 1.434 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01566/0.4097, allocations: 5.097 MB / 426.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.4098, allocations: 12.03 kB / 426.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001787/0.4116, allocations: 0.5343 MB / 426.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005352/0.417, allocations: 0.8999 MB / 427.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006129/0.4232, allocations: 2.652 MB / 430.3 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002888/0.4235, allocations: 250.8 kB / 430.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001275/0.4248, allocations: 343.9 kB / 430.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01197/0.4368, allocations: 4.576 MB / 435.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.4369, allocations: 15.88 kB / 435.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005818/0.4375, allocations: 140 kB / 435.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002045/0.4377, allocations: 158.7 kB / 435.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009532/0.4473, allocations: 3.919 MB / 439.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02895/0.4763, allocations: 14.1 MB / 453.8 MB, free: 232 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008407/0.4847, allocations: 6.991 MB / 460.8 MB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003547/0.4883, allocations: 1.724 MB / 462.5 MB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008741/0.4971, allocations: 4.25 MB / 466.8 MB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.747e-05/0.4972, allocations: 51.88 kB / 466.8 MB, free: 2.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.939e-06/0.4972, allocations: 0 / 466.8 MB, free: 2.309 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01986/0.5171, allocations: 7.88 MB / 474.7 MB, free: 10.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.5172, allocations: 69.41 kB / 474.8 MB, free: 10.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004635/0.5218, allocations: 2.635 MB / 477.4 MB, free: 7.551 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004274/0.5223, allocations: 57.7 kB / 477.4 MB, free: 7.488 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001511/0.5238, allocations: 1.662 MB / 479.1 MB, free: 5.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009301/0.5248, allocations: 0.6584 MB / 479.8 MB, free: 5.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000647/0.5255, allocations: 335.5 kB / 480.1 MB, free: 4.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5256, allocations: 301.1 kB / 480.4 MB, free: 4.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.5274, allocations: 0.9058 MB / 481.3 MB, free: 3.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/0.5295, allocations: 1.306 MB / 482.6 MB, free: 2.152 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004102/0.5337, allocations: 2.348 MB / 484.9 MB, free: 15.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.788e-05/0.5337, allocations: 4 kB / 484.9 MB, free: 15.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006893/0.5406, allocations: 3.082 MB / 488 MB, free: 12.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.5407, allocations: 12.19 kB / 488 MB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.839e-05/0.5408, allocations: 16 kB / 488.1 MB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.5424, allocations: 0.5593 MB / 488.6 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002077/0.5446, allocations: 431.3 kB / 489 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.5553, allocations: 7.592 MB / 496.6 MB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/0.5576, allocations: 83.89 kB / 496.7 MB, free: 3.594 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004239/0.558, allocations: 75.98 kB / 496.8 MB, free: 3.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * 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,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002899/0.5609, allocations: 1.161 MB / 497.9 MB, free: 2.348 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008533/0.5618, allocations: 270.3 kB / 498.2 MB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005614/0.5674, allocations: 2.889 MB / 0.4894 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.369e-05/0.5675, allocations: 20 kB / 0.4894 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.5675, allocations: 11.94 kB / 0.4894 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.5675, allocations: 7.969 kB / 0.4894 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/0.5797, allocations: 6.345 MB / 0.4956 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.5798, allocations: 4 kB / 0.4956 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.5811, allocations: 283.7 kB / 0.4959 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/0.5829, allocations: 0.6161 MB / 0.4965 GB, free: 7.781 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002022/0.5831, allocations: 51.97 kB / 0.4965 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01285/0.596, allocations: 11.44 MB / 0.5077 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.596, allocations: 0 / 0.5077 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007703/0.6037, allocations: 4.173 MB / 0.5118 GB, free: 7.508 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001631/0.6054, allocations: 0.5539 MB / 0.5123 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006638/0.6061, allocations: 36 kB / 0.5123 GB, free: 6.898 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/0.6076, allocations: 87.92 kB / 0.5124 GB, free: 6.812 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004645/0.608, allocations: 137.7 kB / 0.5126 GB, free: 6.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.6082, allocations: 51.98 kB / 0.5126 GB, free: 6.629 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003418/0.6116, allocations: 1.842 MB / 0.5144 GB, free: 4.773 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6117, allocations: 0 / 0.5144 GB, free: 4.773 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003576/0.6152, allocations: 0.6992 MB / 0.5151 GB, free: 4.074 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * 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 (126): * Single equations (assignments): 120 * Array equations: 2 * 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): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009404/0.6247, allocations: 5.072 MB / 0.52 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005761/0.6305, allocations: 2.854 MB / 0.5228 GB, free: 12.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/0.6305, allocations: 12.12 kB / 0.5228 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003682/0.6342, allocations: 1.939 MB / 0.5247 GB, free: 10.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003778/0.638, allocations: 0.5891 MB / 0.5253 GB, free: 9.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.26/0.8981, allocations: 26.15 MB / 0.5508 GB, free: 150.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00401/0.9022, allocations: 2.631 MB / 0.5534 GB, free: 149.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002146/0.9043, allocations: 0.497 MB / 0.5539 GB, free: 149.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00248/0.9068, allocations: 1.428 MB / 0.5553 GB, free: 149.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.263e-06/0.9069, allocations: 0 / 0.5553 GB, free: 149.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1156/1.022, allocations: 64.56 MB / 0.6183 GB, free: 102.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.72, allocations: 20 kB / 0.6184 GB, free: 102.9 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches