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.001339/0.001339, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001545/0.001545, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.524/1.524, 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.001133/0.001133, allocations: 51.92 kB / 328.1 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1058, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.2381/0.3439, allocations: 13.58 MB / 388.3 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01118/0.3551, allocations: 4.864 MB / 393.1 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003559/0.3589, allocations: 71.16 kB / 393.2 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004226/0.3631, allocations: 1.076 MB / 394.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006651/0.3698, allocations: 1.442 MB / 395.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003562/0.3733, allocations: 0.9719 MB / 396.7 MB, free: 236 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008904/0.3823, allocations: 4.326 MB / 401 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005058/0.3874, allocations: 3.289 MB / 404.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005609/0.393, allocations: 2.017 MB / 406.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005959/0.399, allocations: 2.278 MB / 408.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002468/0.4015, allocations: 0.5344 MB / 409.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004164/0.4057, allocations: 0.9069 MB / 410 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002606/0.4083, allocations: 1.361 MB / 411.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006049/0.4144, allocations: 2.349 MB / 413.7 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.4262, allocations: 7.368 MB / 421.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4262, allocations: 0 / 421.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4262, allocations: 0 / 421.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002197/0.4264, allocations: 0 / 421.1 MB, free: 1.488 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.01553/0.442, allocations: 5.09 MB / 426.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.4421, allocations: 8.031 kB / 426.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001041/0.4431, allocations: 0.5343 MB / 426.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004446/0.4476, allocations: 0.9116 MB / 427.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005474/0.4531, allocations: 2.644 MB / 430.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002096/0.4533, allocations: 258.8 kB / 430.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006271/0.4539, allocations: 332 kB / 430.9 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008862/0.4628, allocations: 4.592 MB / 435.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-05/0.4629, allocations: 0 / 435.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.4632, allocations: 136 kB / 435.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001712/0.4634, allocations: 158.8 kB / 435.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007383/0.4708, allocations: 3.915 MB / 439.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02663/0.4975, allocations: 14.12 MB / 453.8 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008739/0.5063, allocations: 6.979 MB / 460.8 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003685/0.51, allocations: 1.72 MB / 462.5 MB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009331/0.5194, allocations: 4.249 MB / 466.7 MB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.5195, allocations: 47.88 kB / 466.8 MB, free: 2.387 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.488e-06/0.5195, allocations: 0 / 466.8 MB, free: 2.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01884/0.5383, allocations: 7.9 MB / 474.7 MB, free: 10.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.5384, allocations: 69.41 kB / 474.8 MB, free: 10.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005062/0.5435, allocations: 2.624 MB / 477.4 MB, free: 7.621 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002441/0.5438, allocations: 57.7 kB / 477.4 MB, free: 7.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.5452, allocations: 1.67 MB / 479.1 MB, free: 5.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007665/0.546, allocations: 0.6545 MB / 479.8 MB, free: 5.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007234/0.5467, allocations: 339.5 kB / 480.1 MB, free: 4.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.5468, allocations: 305.1 kB / 480.4 MB, free: 4.574 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.5485, allocations: 0.9019 MB / 481.3 MB, free: 3.672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/0.5505, allocations: 1.306 MB / 482.6 MB, free: 2.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003765/0.5543, allocations: 2.355 MB / 485 MB, free: 15.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/0.5543, allocations: 4 kB / 485 MB, free: 15.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005915/0.5602, allocations: 3.082 MB / 488 MB, free: 12.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.5603, allocations: 8 kB / 488 MB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/0.5603, allocations: 12.25 kB / 488.1 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/0.562, allocations: 0.5555 MB / 488.6 MB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/0.5638, allocations: 439.3 kB / 489 MB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/0.5741, allocations: 7.58 MB / 496.6 MB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/0.5765, allocations: 87.88 kB / 496.7 MB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004173/0.577, allocations: 75.98 kB / 496.8 MB, free: 3.586 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.003322/0.5803, allocations: 1.161 MB / 497.9 MB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009522/0.5813, allocations: 270.2 kB / 498.2 MB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006272/0.5876, allocations: 2.893 MB / 0.4894 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.032e-05/0.5876, allocations: 20 kB / 0.4894 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-05/0.5877, allocations: 8 kB / 0.4894 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.026e-05/0.5877, allocations: 7.969 kB / 0.4894 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.6011, allocations: 6.356 MB / 0.4956 GB, free: 8.746 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.6011, allocations: 0 / 0.4956 GB, free: 8.746 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.6025, allocations: 279.7 kB / 0.4959 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001735/0.6043, allocations: 0.6084 MB / 0.4965 GB, free: 7.852 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001641/0.6045, allocations: 47.97 kB / 0.4965 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01424/0.6187, allocations: 11.45 MB / 0.5077 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.6187, allocations: 0 / 0.5077 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008735/0.6275, allocations: 4.173 MB / 0.5118 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/0.6294, allocations: 0.5461 MB / 0.5123 GB, free: 7.004 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008796/0.6303, allocations: 40 kB / 0.5123 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/0.6322, allocations: 87.86 kB / 0.5124 GB, free: 6.879 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005226/0.6328, allocations: 137.7 kB / 0.5125 GB, free: 6.746 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/0.633, allocations: 55.97 kB / 0.5126 GB, free: 6.691 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00442/0.6374, allocations: 1.842 MB / 0.5144 GB, free: 4.836 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6375, allocations: 0 / 0.5144 GB, free: 4.836 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003614/0.6411, allocations: 0.6913 MB / 0.5151 GB, free: 4.145 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.009138/0.6502, allocations: 5.084 MB / 0.52 GB, free: 15.01 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005655/0.6559, allocations: 2.857 MB / 0.5228 GB, free: 12.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.656, allocations: 256 / 0.5228 GB, free: 12.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00329/0.6593, allocations: 1.935 MB / 0.5247 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004107/0.6634, allocations: 0.585 MB / 0.5253 GB, free: 9.555 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2834/0.9468, allocations: 26.16 MB / 0.5508 GB, free: 150.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003669/0.9506, allocations: 2.633 MB / 0.5534 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001936/0.9525, allocations: 0.497 MB / 0.5539 GB, free: 149.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/0.9544, allocations: 1.427 MB / 0.5553 GB, free: 149.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.423e-06/0.9544, allocations: 0 / 0.5553 GB, free: 149.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1218/1.076, allocations: 64.55 MB / 0.6183 GB, free: 103.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.16/17.24, allocations: 12 kB / 0.6183 GB, free: 103.3 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