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.001511/0.001511, allocations: 117.6 kB / 17.78 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.001423/0.001423, allocations: 200.7 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.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 63.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2751, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01433/0.2895, allocations: 14.27 MB / 423.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00926/0.2988, allocations: 5.351 MB / 428.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002024/0.3009, allocations: 83.69 kB / 428.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002658/0.3035, allocations: 1.098 MB / 429.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004572/0.3082, allocations: 1.476 MB / 431.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00236/0.3105, allocations: 1.024 MB / 432.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005081/0.3156, allocations: 4.359 MB / 436.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003829/0.3195, allocations: 3.352 MB / 439.8 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002956/0.3225, allocations: 2.033 MB / 441.8 MB, free: 308 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004191/0.3267, allocations: 2.402 MB / 444.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001822/0.3285, allocations: 0.5352 MB / 444.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00278/0.3313, allocations: 0.9174 MB / 445.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002189/0.3335, allocations: 1.367 MB / 447.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004665/0.3382, allocations: 2.36 MB / 449.4 MB, free: 8.695 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01041/0.3486, allocations: 7.42 MB / 456.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3487, allocations: 0 / 456.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3487, allocations: 0 / 456.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002538/0.349, allocations: 0 / 456.8 MB, free: 1.25 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.01536/0.3643, allocations: 5.146 MB / 462 MB, free: 12.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.3644, allocations: 12.03 kB / 462 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00175/0.3662, allocations: 0.5382 MB / 462.5 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005407/0.3716, allocations: 0.935 MB / 463.5 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006024/0.3776, allocations: 2.836 MB / 466.3 MB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002559/0.3779, allocations: 254.8 kB / 466.6 MB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008676/0.3788, allocations: 351.9 kB / 466.9 MB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01041/0.3892, allocations: 4.572 MB / 471.5 MB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/0.3894, allocations: 11.94 kB / 471.5 MB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007494/0.3902, allocations: 140 kB / 471.6 MB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001936/0.3904, allocations: 154.8 kB / 471.8 MB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008925/0.3993, allocations: 3.931 MB / 475.7 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02989/0.4292, allocations: 14.11 MB / 489.8 MB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007971/0.4373, allocations: 6.987 MB / 496.8 MB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002974/0.4403, allocations: 1.716 MB / 498.5 MB, free: 6.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008448/0.4487, allocations: 4.487 MB / 0.4912 GB, free: 1.621 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.4488, allocations: 51.88 kB / 0.4913 GB, free: 1.562 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 4.048e-06/0.4488, allocations: 0 / 0.4913 GB, free: 1.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01743/0.4663, allocations: 7.845 MB / 0.4989 GB, free: 9.586 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.4664, allocations: 73.41 kB / 0.499 GB, free: 9.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004347/0.4707, allocations: 2.657 MB / 0.5016 GB, free: 6.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.4709, allocations: 53.7 kB / 0.5016 GB, free: 6.762 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.4721, allocations: 1.686 MB / 0.5033 GB, free: 5.059 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005545/0.4727, allocations: 0.6584 MB / 0.5039 GB, free: 4.395 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005941/0.4733, allocations: 335.4 kB / 0.5042 GB, free: 4.062 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.234e-05/0.4734, allocations: 309.1 kB / 0.5045 GB, free: 3.758 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/0.475, allocations: 0.9058 MB / 0.5054 GB, free: 2.852 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001848/0.4768, allocations: 1.302 MB / 0.5067 GB, free: 1.398 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.4804, allocations: 2.355 MB / 0.509 GB, free: 14.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.4804, allocations: 7.938 kB / 0.509 GB, free: 14.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005948/0.4864, allocations: 3.09 MB / 0.512 GB, free: 11.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.4865, allocations: 12 kB / 0.512 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.4865, allocations: 12 kB / 0.512 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/0.4881, allocations: 0.5515 MB / 0.5126 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001883/0.49, allocations: 431.3 kB / 0.513 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.5003, allocations: 7.604 MB / 0.5204 GB, free: 2.902 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/0.5023, allocations: 87.94 kB / 0.5205 GB, free: 2.816 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003334/0.5027, allocations: 75.98 kB / 0.5206 GB, free: 2.742 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.002295/0.505, allocations: 1.173 MB / 0.5217 GB, free: 1.559 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007585/0.5058, allocations: 270.3 kB / 0.522 GB, free: 1.293 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005799/0.5116, allocations: 2.886 MB / 0.5248 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.21e-05/0.5116, allocations: 23.94 kB / 0.5248 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/0.5117, allocations: 8 kB / 0.5248 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.5117, allocations: 11.95 kB / 0.5248 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.523, allocations: 6.366 MB / 0.5311 GB, free: 7.883 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.523, allocations: 3.984 kB / 0.5311 GB, free: 7.879 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.5243, allocations: 275.8 kB / 0.5313 GB, free: 7.609 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.5259, allocations: 0.6273 MB / 0.5319 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/0.5261, allocations: 43.98 kB / 0.532 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2322/0.7583, allocations: 11.45 MB / 0.5432 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.7584, allocations: 2.359 kB / 0.5432 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006646/0.765, allocations: 4.165 MB / 0.5472 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/0.7664, allocations: 0.5611 MB / 0.5478 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003416/0.7667, allocations: 41.31 kB / 0.5478 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.7678, allocations: 84.86 kB / 0.5479 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003327/0.7682, allocations: 132.8 kB / 0.548 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.7683, allocations: 51.17 kB / 0.5481 GB, free: 117.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002346/0.7706, allocations: 1.867 MB / 0.5499 GB, free: 116.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7707, allocations: 0 / 0.5499 GB, free: 116.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002419/0.7731, allocations: 0.6983 MB / 0.5506 GB, free: 116.6 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.007473/0.7806, allocations: 5.09 MB / 0.5555 GB, free: 114.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004853/0.7855, allocations: 2.833 MB / 0.5583 GB, free: 113.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.7855, allocations: 3.969 kB / 0.5583 GB, free: 113.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/0.7882, allocations: 1.934 MB / 0.5602 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/0.7913, allocations: 0.6044 MB / 0.5608 GB, free: 111 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03418/0.8255, allocations: 26.24 MB / 0.5864 GB, free: 85.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/0.8274, allocations: 2.649 MB / 0.589 GB, free: 82.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001513/0.8289, allocations: 0.5047 MB / 0.5895 GB, free: 82.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/0.8304, allocations: 1.44 MB / 0.5909 GB, free: 80.74 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8304, allocations: 4 kB / 0.5909 GB, free: 80.74 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.9317, allocations: 65.01 MB / 0.6544 GB, free: 16.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.54, allocations: 8.312 kB / 0.6544 GB, free: 16.26 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