Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001173/0.001174, allocations: 183.6 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 6.156 kB / 300.8 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09469, allocations: 50.41 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01131/0.106, allocations: 11 MB / 362.2 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007874/0.1139, allocations: 4.704 MB / 366.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001972/0.1159, allocations: 71.69 kB / 367 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002804/0.1188, allocations: 0.7968 MB / 367.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003787/0.1226, allocations: 1.223 MB / 369 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002002/0.1246, allocations: 0.6904 MB / 369.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004455/0.1291, allocations: 2.935 MB / 372.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002563/0.1316, allocations: 2.314 MB / 375 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001665/0.1333, allocations: 1.343 MB / 376.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001743/0.1351, allocations: 1.619 MB / 377.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003547/0.1354, allocations: 220 kB / 378.1 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.1365, allocations: 0.5151 MB / 378.7 MB, free: 44 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007811/0.1373, allocations: 0.9423 MB / 379.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007257/0.1381, allocations: 0.8043 MB / 380.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004791/0.1429, allocations: 5.929 MB / 386.3 MB, free: 8.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1429, allocations: 4 kB / 386.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1429, allocations: 0 / 386.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001493/0.1431, allocations: 0 / 386.3 MB, free: 8.336 MB / 318.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.009963/0.153, allocations: 4.252 MB / 390.6 MB, free: 4.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1531, allocations: 12.03 kB / 390.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001197/0.1543, allocations: 0.5302 MB / 391.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004606/0.1589, allocations: 0.8887 MB / 392 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005469/0.1644, allocations: 2.612 MB / 394.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/0.1646, allocations: 254.7 kB / 394.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007342/0.1654, allocations: 347.8 kB / 395.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008908/0.1743, allocations: 4.529 MB / 399.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.079e-05/0.1744, allocations: 7.938 kB / 399.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003215/0.1747, allocations: 140 kB / 399.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.1749, allocations: 154.8 kB / 400.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007076/0.182, allocations: 3.907 MB / 404 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02184/0.2039, allocations: 14.25 MB / 418.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00796/0.2119, allocations: 6.936 MB / 425.1 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1903/0.4022, allocations: 3.626 MB / 428.8 MB, free: 59.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.4023, allocations: 55.61 kB / 428.8 MB, free: 59.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=169): time 3.938e-06/0.4023, allocations: 2.812 kB / 428.8 MB, free: 59.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=189): time 0.01854/0.4209, allocations: 8.035 MB / 436.9 MB, free: 57.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/0.421, allocations: 71.28 kB / 436.9 MB, free: 57.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004456/0.4255, allocations: 2.569 MB / 439.5 MB, free: 57.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003223/0.4258, allocations: 56.8 kB / 439.6 MB, free: 57.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001571/0.4274, allocations: 1.625 MB / 441.2 MB, free: 55.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006107/0.428, allocations: 0.6344 MB / 441.8 MB, free: 55.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.4281, allocations: 39.88 kB / 441.8 MB, free: 55.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.4282, allocations: 387.9 kB / 442.2 MB, free: 55.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.4296, allocations: 0.9036 MB / 443.1 MB, free: 54.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.4311, allocations: 1.289 MB / 444.4 MB, free: 53.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.4325, allocations: 1.122 MB / 445.5 MB, free: 53.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.4326, allocations: 7.938 kB / 445.6 MB, free: 53.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004961/0.4375, allocations: 3.053 MB / 448.6 MB, free: 52.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.4376, allocations: 11.33 kB / 448.6 MB, free: 52.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.4376, allocations: 11.41 kB / 448.6 MB, free: 52.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.4389, allocations: 0.5608 MB / 449.2 MB, free: 51.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/0.4406, allocations: 431.3 kB / 449.6 MB, free: 51.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00731/0.4479, allocations: 7.23 MB / 456.8 MB, free: 46.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/0.4499, allocations: 92.5 kB / 456.9 MB, free: 46.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002013/0.4501, allocations: 81.41 kB / 457 MB, free: 46.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (199): * Single equations (assignments): 195 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,75.5%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002088/0.4522, allocations: 1.154 MB / 458.2 MB, free: 44.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005332/0.4528, allocations: 256.8 kB / 458.4 MB, free: 44.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004383/0.4571, allocations: 2.911 MB / 461.3 MB, free: 41.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.038e-05/0.4572, allocations: 24 kB / 461.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/0.4572, allocations: 8 kB / 461.4 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/0.4572, allocations: 14.14 kB / 461.4 MB, free: 41.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008858/0.4661, allocations: 6.321 MB / 467.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.4662, allocations: 4 kB / 467.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.4674, allocations: 288.8 kB / 468 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001356/0.4688, allocations: 0.6239 MB / 468.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/0.4689, allocations: 49.73 kB / 468.6 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008762/0.4777, allocations: 10.77 MB / 479.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4777, allocations: 0 / 479.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006855/0.4846, allocations: 4.243 MB / 483.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/0.4859, allocations: 0.5398 MB / 484.2 MB, free: 18.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003687/0.4863, allocations: 39.98 kB / 484.2 MB, free: 18.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.4875, allocations: 93.11 kB / 484.3 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004299/0.4879, allocations: 143.2 kB / 484.5 MB, free: 17.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.488, allocations: 59.88 kB / 484.5 MB, free: 17.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002292/0.4903, allocations: 1.792 MB / 486.3 MB, free: 16.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4904, allocations: 0 / 486.3 MB, free: 16.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002558/0.4929, allocations: 0.6888 MB / 487 MB, free: 15.42 MB / 350.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 (129): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006698/0.4996, allocations: 5.399 MB / 492.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00418/0.5038, allocations: 2.844 MB / 495.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.5039, allocations: 0 / 495.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002591/0.5065, allocations: 1.978 MB / 497.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002303/0.5088, allocations: 0.5331 MB / 497.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04457/0.5534, allocations: 28.57 MB / 0.514 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/0.556, allocations: 2.71 MB / 0.5166 GB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001864/0.5579, allocations: 0.5006 MB / 0.5171 GB, free: 3.488 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/0.5597, allocations: 1.421 MB / 0.5185 GB, free: 2.066 MB / 382.1 MB Notification: Performance of SimCode: time 2.154e-06/0.5597, allocations: 0 / 0.5185 GB, free: 2.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09644/0.6562, allocations: 61.32 MB / 0.5784 GB, free: 5.219 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/0.6564, allocations: 293.2 kB / 0.5787 GB, free: 4.852 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.626/4.283, allocations: 6.812 kB / 0.5787 GB, free: 4.848 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)