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.001257/0.001257, allocations: 114.5 kB / 17.73 MB, free: 5.32 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.001207/0.001207, allocations: 179 kB / 18.66 MB, free: 4.398 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.433/1.433, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001413/0.001413, allocations: 47.94 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08707/0.0885, allocations: 46.62 MB / 374.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.213/0.3015, allocations: 13.57 MB / 388.3 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009572/0.3111, allocations: 4.874 MB / 393.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002782/0.314, allocations: 67.94 kB / 393.2 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00322/0.3172, allocations: 1.039 MB / 394.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005137/0.3224, allocations: 1.399 MB / 395.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.3251, allocations: 0.9637 MB / 396.6 MB, free: 264 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007391/0.3325, allocations: 4.326 MB / 400.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004775/0.3373, allocations: 3.296 MB / 404.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004629/0.342, allocations: 2.007 MB / 406.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005153/0.3471, allocations: 2.266 MB / 408.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001598/0.3488, allocations: 0.5342 MB / 409 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003655/0.3524, allocations: 0.9106 MB / 409.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001892/0.3544, allocations: 1.372 MB / 411.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004853/0.3592, allocations: 2.34 MB / 413.6 MB, free: 7.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.3693, allocations: 7.344 MB / 421 MB, free: 1.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3693, allocations: 0 / 421 MB, free: 1.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3693, allocations: 0 / 421 MB, free: 1.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002236/0.3696, allocations: 0 / 421 MB, free: 1.555 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.01472/0.3843, allocations: 4.977 MB / 426 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.3844, allocations: 8.031 kB / 426 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001192/0.3856, allocations: 0.542 MB / 426.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004464/0.3901, allocations: 0.8779 MB / 427.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005645/0.3957, allocations: 2.627 MB / 430 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.396, allocations: 262.7 kB / 430.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006059/0.3966, allocations: 343.8 kB / 430.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008546/0.4051, allocations: 4.576 MB / 435.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.753e-05/0.4052, allocations: 3.906 kB / 435.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003234/0.4056, allocations: 140 kB / 435.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/0.4057, allocations: 162.7 kB / 435.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007194/0.413, allocations: 3.919 MB / 439.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02725/0.4402, allocations: 14.06 MB / 453.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008725/0.449, allocations: 6.975 MB / 460.4 MB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003274/0.4523, allocations: 1.728 MB / 462.2 MB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008553/0.4609, allocations: 4.237 MB / 466.4 MB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.461, allocations: 59.81 kB / 466.5 MB, free: 2.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.857e-06/0.461, allocations: 0 / 466.5 MB, free: 2.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.0185/0.4795, allocations: 7.823 MB / 474.3 MB, free: 10.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.367e-05/0.4796, allocations: 73.39 kB / 474.4 MB, free: 10.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00589/0.4855, allocations: 2.627 MB / 477 MB, free: 7.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002758/0.4858, allocations: 57.7 kB / 477 MB, free: 7.875 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001557/0.4874, allocations: 1.634 MB / 478.7 MB, free: 6.219 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008418/0.4883, allocations: 0.6198 MB / 479.3 MB, free: 5.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000844/0.4891, allocations: 335.3 kB / 479.6 MB, free: 5.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4892, allocations: 301.1 kB / 479.9 MB, free: 4.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.491, allocations: 0.9136 MB / 480.8 MB, free: 4.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/0.4931, allocations: 1.302 MB / 482.1 MB, free: 2.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003797/0.4969, allocations: 2.348 MB / 484.5 MB, free: 104 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.511e-05/0.4969, allocations: 4 kB / 484.5 MB, free: 100 kB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006048/0.503, allocations: 3.069 MB / 487.6 MB, free: 13.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.503, allocations: 11.94 kB / 487.6 MB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.821e-05/0.503, allocations: 12.25 kB / 487.6 MB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001692/0.5047, allocations: 0.5594 MB / 488.1 MB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001826/0.5066, allocations: 435.3 kB / 488.6 MB, free: 12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.5169, allocations: 7.579 MB / 496.1 MB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.5188, allocations: 83.94 kB / 496.2 MB, free: 4.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/0.5192, allocations: 80 kB / 496.3 MB, free: 3.98 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.002346/0.5215, allocations: 1.165 MB / 497.5 MB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007274/0.5223, allocations: 248.9 kB / 497.7 MB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006022/0.5283, allocations: 2.889 MB / 0.4889 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-05/0.5283, allocations: 20 kB / 0.4889 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-05/0.5284, allocations: 11.94 kB / 0.4889 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.5284, allocations: 11.95 kB / 0.4889 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.5408, allocations: 6.345 MB / 0.4951 GB, free: 9.164 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.5409, allocations: 0 / 0.4951 GB, free: 9.164 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/0.5425, allocations: 283.8 kB / 0.4954 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.5442, allocations: 0.6238 MB / 0.496 GB, free: 8.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001623/0.5444, allocations: 39.98 kB / 0.496 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01392/0.5583, allocations: 11.43 MB / 0.5072 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/0.5584, allocations: 7.969 kB / 0.5072 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008424/0.5668, allocations: 4.156 MB / 0.5113 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001559/0.5684, allocations: 0.537 MB / 0.5118 GB, free: 7.441 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006752/0.5691, allocations: 44.05 kB / 0.5118 GB, free: 7.398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.5706, allocations: 75.94 kB / 0.5119 GB, free: 7.324 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000365/0.571, allocations: 149.7 kB / 0.512 GB, free: 7.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/0.5711, allocations: 51.98 kB / 0.5121 GB, free: 7.129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00338/0.5745, allocations: 1.842 MB / 0.5139 GB, free: 5.273 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5745, allocations: 0 / 0.5139 GB, free: 5.273 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002823/0.5774, allocations: 0.6953 MB / 0.5146 GB, free: 4.578 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.008501/0.5859, allocations: 5.063 MB / 0.5195 GB, free: 15.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005601/0.5915, allocations: 2.838 MB / 0.5223 GB, free: 12.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.5915, allocations: 4.312 kB / 0.5223 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003329/0.5949, allocations: 1.942 MB / 0.5242 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003747/0.5986, allocations: 0.6008 MB / 0.5248 GB, free: 10 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2434/0.8421, allocations: 26.01 MB / 0.5502 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003787/0.846, allocations: 2.637 MB / 0.5527 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002059/0.848, allocations: 0.4964 MB / 0.5532 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/0.8499, allocations: 1.428 MB / 0.5546 GB, free: 151.1 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8499, allocations: 2.375 kB / 0.5546 GB, free: 151.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.132/0.9818, allocations: 64.55 MB / 0.6177 GB, free: 104.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/16.01, allocations: 3.938 kB / 0.6177 GB, free: 104.8 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