Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00118/0.00118, allocations: 118.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.001264/0.001264, allocations: 198 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.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 64.12 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2942, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01554/0.3098, allocations: 14.26 MB / 423.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.3206, allocations: 5.351 MB / 428.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002948/0.3236, allocations: 83.69 kB / 428.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003639/0.3272, allocations: 1.102 MB / 429.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005717/0.333, allocations: 1.476 MB / 431.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003543/0.3366, allocations: 1.024 MB / 432.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006774/0.3434, allocations: 4.362 MB / 436.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005885/0.3493, allocations: 3.352 MB / 439.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003662/0.353, allocations: 2.033 MB / 441.8 MB, free: 288 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004236/0.3572, allocations: 2.406 MB / 444.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001793/0.359, allocations: 0.5312 MB / 444.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.3623, allocations: 0.9251 MB / 445.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002174/0.3645, allocations: 1.356 MB / 447.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004508/0.369, allocations: 2.36 MB / 449.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.3793, allocations: 7.416 MB / 456.8 MB, free: 1.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3793, allocations: 0 / 456.8 MB, free: 1.238 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3794, allocations: 0 / 456.8 MB, free: 1.238 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002579/0.3796, allocations: 0 / 456.8 MB, free: 1.238 MB / 366.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.017/0.3966, allocations: 5.154 MB / 462 MB, free: 12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.992e-05/0.3967, allocations: 8.031 kB / 462 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002007/0.3987, allocations: 0.5344 MB / 462.5 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005821/0.4046, allocations: 0.9389 MB / 463.5 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006923/0.4115, allocations: 2.851 MB / 466.3 MB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003218/0.4119, allocations: 254.8 kB / 466.6 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001256/0.4132, allocations: 339.9 kB / 466.9 MB, free: 7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.4256, allocations: 4.584 MB / 471.5 MB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.4258, allocations: 3.984 kB / 471.5 MB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008509/0.4267, allocations: 140 kB / 471.6 MB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000236/0.4269, allocations: 154.8 kB / 471.8 MB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009107/0.436, allocations: 3.931 MB / 475.7 MB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02755/0.4636, allocations: 14.1 MB / 489.8 MB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00782/0.4715, allocations: 6.995 MB / 496.8 MB, free: 7.938 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003096/0.4746, allocations: 1.712 MB / 498.5 MB, free: 6.227 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008439/0.4831, allocations: 4.483 MB / 0.4912 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.078e-05/0.4832, allocations: 51.88 kB / 0.4913 GB, free: 1.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 5.14e-06/0.4832, allocations: 0 / 0.4913 GB, free: 1.543 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.0178/0.501, allocations: 7.837 MB / 0.4989 GB, free: 9.574 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.5011, allocations: 73.41 kB / 0.499 GB, free: 9.488 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004583/0.5057, allocations: 2.665 MB / 0.5016 GB, free: 6.801 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/0.5059, allocations: 57.7 kB / 0.5016 GB, free: 6.738 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.5072, allocations: 1.682 MB / 0.5033 GB, free: 5.039 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006329/0.5079, allocations: 0.6584 MB / 0.5039 GB, free: 4.375 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006619/0.5085, allocations: 335.5 kB / 0.5042 GB, free: 4.043 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.5087, allocations: 301.1 kB / 0.5045 GB, free: 3.746 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/0.5103, allocations: 0.9097 MB / 0.5054 GB, free: 2.836 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001934/0.5123, allocations: 1.306 MB / 0.5067 GB, free: 1.379 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003819/0.5161, allocations: 2.352 MB / 0.509 GB, free: 14.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.085e-05/0.5161, allocations: 7.938 kB / 0.509 GB, free: 14.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006095/0.5222, allocations: 3.082 MB / 0.512 GB, free: 11.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.5223, allocations: 12 kB / 0.512 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.842e-05/0.5223, allocations: 11.94 kB / 0.512 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/0.524, allocations: 0.5558 MB / 0.5126 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.5259, allocations: 439.3 kB / 0.513 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/0.5361, allocations: 7.604 MB / 0.5204 GB, free: 2.883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/0.5381, allocations: 79.94 kB / 0.5205 GB, free: 2.805 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003887/0.5385, allocations: 75.98 kB / 0.5206 GB, free: 2.73 MB / 446.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%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003017/0.5416, allocations: 1.173 MB / 0.5217 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008951/0.5425, allocations: 270.3 kB / 0.522 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005916/0.5484, allocations: 2.898 MB / 0.5248 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.561e-05/0.5485, allocations: 23.94 kB / 0.5248 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.739e-05/0.5485, allocations: 8 kB / 0.5248 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.5485, allocations: 7.969 kB / 0.5248 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/0.5608, allocations: 6.373 MB / 0.5311 GB, free: 7.855 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.5609, allocations: 0 / 0.5311 GB, free: 7.855 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.5622, allocations: 279.6 kB / 0.5313 GB, free: 7.582 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001829/0.564, allocations: 0.6119 MB / 0.5319 GB, free: 6.961 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001745/0.5642, allocations: 47.98 kB / 0.532 GB, free: 6.914 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2327/0.7969, allocations: 11.45 MB / 0.5432 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.797, allocations: 0 / 0.5432 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007344/0.8043, allocations: 4.171 MB / 0.5472 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.8055, allocations: 0.5544 MB / 0.5478 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000365/0.8059, allocations: 38.16 kB / 0.5478 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.807, allocations: 85.77 kB / 0.5479 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003874/0.8074, allocations: 133.2 kB / 0.548 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.8076, allocations: 55.11 kB / 0.5481 GB, free: 118.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002373/0.81, allocations: 1.869 MB / 0.5499 GB, free: 117.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.81, allocations: 0 / 0.5499 GB, free: 117.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002457/0.8124, allocations: 0.6982 MB / 0.5506 GB, free: 117.5 MB / 462.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.stray.Phi.re,aimc.stator.stray.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.007082/0.8195, allocations: 5.088 MB / 0.5555 GB, free: 115.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004537/0.8241, allocations: 2.84 MB / 0.5583 GB, free: 113.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.8241, allocations: 0 / 0.5583 GB, free: 113.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002586/0.8267, allocations: 1.933 MB / 0.5602 GB, free: 112.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/0.8295, allocations: 0.5995 MB / 0.5608 GB, free: 111.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03416/0.8637, allocations: 26.25 MB / 0.5864 GB, free: 86.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002045/0.8658, allocations: 2.645 MB / 0.589 GB, free: 83.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001589/0.8674, allocations: 0.5008 MB / 0.5895 GB, free: 83.08 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.869, allocations: 1.44 MB / 0.5909 GB, free: 81.64 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.869, allocations: 0 / 0.5909 GB, free: 81.64 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09705/0.9661, allocations: 65.02 MB / 0.6544 GB, free: 17.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.45/16.41, allocations: 448 / 0.6544 GB, free: 17.16 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches