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.0009591/0.000959, allocations: 101.7 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001256/0.001257, allocations: 192.2 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246 MB, free: 11.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002528, allocations: 4 kB / 306.8 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1073, allocations: 51.49 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01352/0.1208, allocations: 12.55 MB / 370.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2198/0.3406, allocations: 4.933 MB / 375.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.3429, allocations: 77.38 kB / 375.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002665/0.3456, allocations: 0.792 MB / 376.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003719/0.3493, allocations: 1.162 MB / 377.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.3514, allocations: 0.715 MB / 378.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005717/0.3571, allocations: 4.399 MB / 382.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00317/0.3603, allocations: 2.316 MB / 385.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002724/0.363, allocations: 1.397 MB / 386.7 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00362/0.3667, allocations: 1.852 MB / 388.5 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008007/0.3675, allocations: 221.2 kB / 388.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002263/0.3697, allocations: 0.564 MB / 389.3 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009375/0.3707, allocations: 0.9472 MB / 390.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001375/0.3721, allocations: 0.8122 MB / 391 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006463/0.3786, allocations: 5.993 MB / 397 MB, free: 2.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.3786, allocations: 0 / 397 MB, free: 2.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.3786, allocations: 4.125 kB / 397 MB, free: 2.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002522/0.3789, allocations: 0 / 397 MB, free: 2.016 MB / 302.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.01112/0.39, allocations: 4.302 MB / 401.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.39, allocations: 8.625 kB / 401.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001428/0.3915, allocations: 0.5437 MB / 401.9 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004795/0.3963, allocations: 0.9201 MB / 402.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005366/0.4017, allocations: 2.605 MB / 405.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/0.4019, allocations: 257.4 kB / 405.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006844/0.4026, allocations: 342.6 kB / 406 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008768/0.4114, allocations: 4.561 MB / 410.6 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.534e-05/0.4115, allocations: 6.297 kB / 410.6 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003395/0.4118, allocations: 143.9 kB / 410.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/0.412, allocations: 158.8 kB / 410.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00774/0.4198, allocations: 3.931 MB / 414.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02619/0.446, allocations: 14.31 MB / 429.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007306/0.4533, allocations: 6.974 MB / 436.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002943/0.4563, allocations: 1.709 MB / 437.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007576/0.4639, allocations: 4.496 MB / 442.3 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.464, allocations: 51.88 kB / 442.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.446e-06/0.464, allocations: 2.297 kB / 442.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01734/0.4813, allocations: 7.933 MB / 450.3 MB, free: 14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.4814, allocations: 69.41 kB / 450.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004256/0.4857, allocations: 2.639 MB / 453 MB, free: 11.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004461/0.4862, allocations: 53.7 kB / 453 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001539/0.4877, allocations: 1.649 MB / 454.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008764/0.4886, allocations: 0.6268 MB / 455.3 MB, free: 8.922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.4887, allocations: 36 kB / 455.3 MB, free: 8.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.4889, allocations: 381.9 kB / 455.7 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/0.4906, allocations: 0.9136 MB / 456.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.4924, allocations: 1.31 MB / 457.9 MB, free: 6.137 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00184/0.4943, allocations: 1.134 MB / 459.1 MB, free: 5.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.4943, allocations: 8 kB / 459.1 MB, free: 5 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005587/0.4999, allocations: 3.08 MB / 462.2 MB, free: 1.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.4999, allocations: 8 kB / 462.2 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/0.5, allocations: 15.98 kB / 462.2 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/0.5015, allocations: 0.5597 MB / 462.7 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001785/0.5033, allocations: 435.3 kB / 463.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00878/0.5121, allocations: 6.941 MB / 470.1 MB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.5141, allocations: 96 kB / 470.2 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.5143, allocations: 79.92 kB / 470.3 MB, free: 9.516 MB / 382.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 (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,(8,62.5%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002313/0.5166, allocations: 1.161 MB / 471.4 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005931/0.5172, allocations: 260.8 kB / 471.7 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005348/0.5226, allocations: 2.905 MB / 474.6 MB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.153e-05/0.5226, allocations: 20 kB / 474.6 MB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.5227, allocations: 8 kB / 474.6 MB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.5227, allocations: 7.969 kB / 474.6 MB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01094/0.5336, allocations: 6.38 MB / 481 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.5337, allocations: 4.062 kB / 481 MB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/0.535, allocations: 283.7 kB / 481.3 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001657/0.5367, allocations: 0.6136 MB / 481.9 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.5368, allocations: 43.98 kB / 482 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.011/0.5478, allocations: 10.48 MB / 492.4 MB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.5479, allocations: 4.031 kB / 492.4 MB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007273/0.5551, allocations: 4.179 MB / 496.6 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/0.5566, allocations: 0.5485 MB / 497.2 MB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003465/0.5569, allocations: 40 kB / 497.2 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.558, allocations: 91.94 kB / 497.3 MB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003335/0.5584, allocations: 141.7 kB / 497.4 MB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/0.5585, allocations: 54.64 kB / 497.5 MB, free: 13.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002749/0.5612, allocations: 1.851 MB / 499.3 MB, free: 11.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5613, allocations: 0 / 499.3 MB, free: 11.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002978/0.5642, allocations: 0.6992 MB / 0.4883 GB, free: 11.09 MB / 414.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 (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%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008295/0.5725, allocations: 5.089 MB / 0.4933 GB, free: 6.074 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005211/0.5778, allocations: 2.842 MB / 0.4961 GB, free: 3.207 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.5778, allocations: 4 kB / 0.4961 GB, free: 3.203 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003497/0.5813, allocations: 1.941 MB / 0.498 GB, free: 1.219 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00378/0.5851, allocations: 0.5847 MB / 0.4985 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04605/0.6312, allocations: 22.38 MB / 0.5204 GB, free: 8.895 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/0.6339, allocations: 2.651 MB / 0.523 GB, free: 6.219 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002093/0.636, allocations: 0.5046 MB / 0.5235 GB, free: 5.707 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002038/0.638, allocations: 1.444 MB / 0.5249 GB, free: 4.262 MB / 446.1 MB Notification: Performance of SimCode: time 1.684e-06/0.638, allocations: 0 / 0.5249 GB, free: 4.262 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2706/0.9086, allocations: 62.67 MB / 0.5861 GB, free: 105.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/0.9088, allocations: 289.5 kB / 0.5864 GB, free: 105.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.642/4.551, allocations: 0 / 0.5864 GB, free: 105.2 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)