Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_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.001028/0.001028, allocations: 97.17 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.001329, allocations: 195.1 kB / 17.9 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.0002469, allocations: 8 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1294, allocations: 51.5 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.009888/0.1394, allocations: 8.585 MB / 366.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008228/0.1477, allocations: 3.516 MB / 370.4 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00234/0.1501, allocations: 39.81 kB / 370.5 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002555/0.1526, allocations: 0.5437 MB / 371 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003513/0.1562, allocations: 0.7421 MB / 371.7 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.1575, allocations: 327.4 kB / 372.1 MB, free: 180 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2648/0.4223, allocations: 2.719 MB / 374.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002472/0.4248, allocations: 1.324 MB / 376.1 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002373/0.4272, allocations: 0.9227 MB / 377 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003159/0.4304, allocations: 1.324 MB / 378.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006741/0.4311, allocations: 137.3 kB / 378.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.4327, allocations: 359.7 kB / 378.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.4337, allocations: 0.7891 MB / 379.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.435, allocations: 0.5101 MB / 380.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005603/0.4407, allocations: 3.4 MB / 383.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.4407, allocations: 0 / 383.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4407, allocations: 3.938 kB / 383.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001741/0.4409, allocations: 0 / 383.5 MB, free: 9.004 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007513/0.4484, allocations: 2.733 MB / 386.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.4485, allocations: 10.28 kB / 386.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001299/0.4498, allocations: 357.1 kB / 386.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001601/0.4514, allocations: 369 kB / 387 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003574/0.455, allocations: 1.598 MB / 388.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.4551, allocations: 159.9 kB / 388.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000434/0.4556, allocations: 215.5 kB / 389 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006111/0.4617, allocations: 2.722 MB / 391.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.655e-05/0.4618, allocations: 2.688 kB / 391.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.462, allocations: 83.69 kB / 391.8 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.4621, allocations: 100.7 kB / 391.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004779/0.4669, allocations: 2.311 MB / 394.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01332/0.4803, allocations: 8.343 MB / 402.5 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/0.483, allocations: 1.65 MB / 404.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00182/0.4849, allocations: 1.095 MB / 405.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002252/0.4851, allocations: 128.8 kB / 405.4 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.4852, allocations: 45.86 kB / 405.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.366e-06/0.4852, allocations: 0 / 405.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01281/0.498, allocations: 6.504 MB / 411.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.4981, allocations: 68.7 kB / 412 MB, free: 4.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003431/0.5015, allocations: 2.153 MB / 414.2 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002482/0.5018, allocations: 49.7 kB / 414.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009316/0.5027, allocations: 1.126 MB / 415.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004799/0.5032, allocations: 464.3 kB / 415.8 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.197e-05/0.5033, allocations: 24.86 kB / 415.8 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5035, allocations: 361.9 kB / 416.2 MB, free: 240 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.5048, allocations: 0.7673 MB / 416.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.5063, allocations: 1.022 MB / 417.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.5077, allocations: 0.9003 MB / 418.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.5077, allocations: 4 kB / 418.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005266/0.513, allocations: 2.769 MB / 421.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.513, allocations: 11.75 kB / 421.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.513, allocations: 12.19 kB / 421.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/0.5149, allocations: 0.7822 MB / 422.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.5161, allocations: 279.6 kB / 422.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.5271, allocations: 8.741 MB / 431.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.5289, allocations: 96.08 kB / 431.5 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.529, allocations: 57.95 kB / 431.6 MB, free: 444 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * 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,(6,88.9%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001896/0.5309, allocations: 0.7466 MB / 432.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005509/0.5315, allocations: 197.6 kB / 432.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004483/0.536, allocations: 2.505 MB / 435 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/0.536, allocations: 20 kB / 435.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.5361, allocations: 11.98 kB / 435.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.5361, allocations: 3.984 kB / 435.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008464/0.5445, allocations: 4.982 MB / 440.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.5446, allocations: 3.984 kB / 440.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009631/0.5455, allocations: 223.9 kB / 440.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001613/0.5472, allocations: 0.6532 MB / 440.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.5473, allocations: 33.47 kB / 441 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008149/0.5554, allocations: 7.922 MB / 448.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.5555, allocations: 6.984 kB / 448.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005957/0.5614, allocations: 3.558 MB / 452.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.5625, allocations: 442.5 kB / 452.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/0.5628, allocations: 27.98 kB / 452.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009214/0.5637, allocations: 91.91 kB / 453 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.564, allocations: 108.8 kB / 453.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.88e-05/0.5641, allocations: 47.89 kB / 453.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002373/0.5665, allocations: 1.52 MB / 454.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5665, allocations: 0 / 454.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002287/0.5688, allocations: 0.5297 MB / 455.2 MB, free: 8.246 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007274/0.5761, allocations: 4.447 MB / 459.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004646/0.5808, allocations: 2.396 MB / 462 MB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.5808, allocations: 0 / 462 MB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002797/0.5836, allocations: 1.608 MB / 463.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/0.5862, allocations: 434.9 kB / 464.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03181/0.6181, allocations: 17.12 MB / 481.2 MB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002089/0.6202, allocations: 1.963 MB / 483.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00147/0.6217, allocations: 391.7 kB / 483.5 MB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/0.623, allocations: 0.9835 MB / 484.5 MB, free: 9.918 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6231, allocations: 0 / 484.5 MB, free: 9.918 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08267/0.7057, allocations: 47.93 MB / 0.52 GB, free: 10.43 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.706, allocations: 266.8 kB / 0.5202 GB, free: 10.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.937/3.643, allocations: 0 / 0.5202 GB, free: 10.08 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1)