Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 95.36 kB / 16.3 MB, free: 5.625 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.001591/0.001591, allocations: 182.4 kB / 17.2 MB, free: 5.559 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.464/1.465, allocations: 223.2 MB / 241.1 MB, free: 5.289 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.000264, allocations: 7.125 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.115, allocations: 50.43 MB / 351.2 MB, free: 11.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.009702/0.1248, allocations: 7.837 MB / 359.1 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007192/0.132, allocations: 3.408 MB / 362.5 MB, free: 224 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001657/0.1337, allocations: 39.81 kB / 362.5 MB, free: 184 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001748/0.1354, allocations: 0.5481 MB / 363.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002616/0.1381, allocations: 0.6971 MB / 363.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009561/0.1391, allocations: 323.4 kB / 364.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002495/0.1416, allocations: 1.72 MB / 365.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001519/0.1431, allocations: 1.315 MB / 367.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.1442, allocations: 0.8406 MB / 368 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001246/0.1455, allocations: 1.097 MB / 369.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002221/0.1457, allocations: 132 kB / 369.2 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007211/0.1464, allocations: 339.6 kB / 369.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007584/0.1472, allocations: 0.7907 MB / 370.3 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005165/0.1477, allocations: 0.5042 MB / 370.8 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00309/0.1508, allocations: 3.35 MB / 374.2 MB, free: 4.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1509, allocations: 0 / 374.2 MB, free: 4.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1509, allocations: 0 / 374.2 MB, free: 4.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.854e-05/0.151, allocations: 4 kB / 374.2 MB, free: 4.469 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.005848/0.1568, allocations: 2.714 MB / 376.9 MB, free: 1.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.1569, allocations: 8.031 kB / 376.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000628/0.1575, allocations: 363 kB / 377.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007966/0.1583, allocations: 328.3 kB / 377.6 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002987/0.1613, allocations: 1.604 MB / 379.2 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.1615, allocations: 156.1 kB / 379.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000294/0.1618, allocations: 227.8 kB / 379.5 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00458/0.1664, allocations: 2.7 MB / 382.2 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.091e-05/0.1664, allocations: 7.906 kB / 382.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001937/0.1666, allocations: 80 kB / 382.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001401/0.1668, allocations: 100 kB / 382.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00438/0.1712, allocations: 2.288 MB / 384.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.1856, allocations: 8.257 MB / 393 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.1882, allocations: 1.598 MB / 394.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002484/0.1885, allocations: 122.1 kB / 394.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.1885, allocations: 47.56 kB / 394.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.576e-06/0.1886, allocations: 4 kB / 394.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=132): time 0.0134/0.202, allocations: 6.703 MB / 401.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.202, allocations: 64.72 kB / 401.5 MB, free: 8.379 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002871/0.2049, allocations: 2.106 MB / 403.6 MB, free: 6.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001699/0.2051, allocations: 45.7 kB / 403.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008837/0.206, allocations: 1.119 MB / 404.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004972/0.2065, allocations: 453.4 kB / 405.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.011e-05/0.2066, allocations: 24 kB / 405.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.2068, allocations: 365.9 kB / 405.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.208, allocations: 0.7535 MB / 406.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.2094, allocations: 1.006 MB / 407.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.2108, allocations: 0.8926 MB / 408.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.2108, allocations: 0 / 408.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004903/0.2157, allocations: 2.776 MB / 411 MB, free: 14.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.2158, allocations: 12 kB / 411 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.2158, allocations: 11.98 kB / 411 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/0.2177, allocations: 0.8014 MB / 411.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.2188, allocations: 271.6 kB / 412.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.2301, allocations: 9.281 MB / 421.4 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.2316, allocations: 95.86 kB / 421.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.2318, allocations: 55.92 kB / 421.5 MB, free: 3.859 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (124): * 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: 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%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001581/0.2334, allocations: 0.7395 MB / 422.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.2338, allocations: 201.5 kB / 422.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004298/0.2381, allocations: 2.512 MB / 425 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/0.2381, allocations: 20 kB / 425 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.2381, allocations: 4 kB / 425 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.2382, allocations: 7.969 kB / 425 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2262/0.4644, allocations: 4.894 MB / 429.9 MB, free: 62.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.4644, allocations: 1.281 kB / 429.9 MB, free: 62.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.4654, allocations: 219.8 kB / 430.1 MB, free: 62.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001901/0.4674, allocations: 0.6673 MB / 430.8 MB, free: 62.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.4675, allocations: 32.69 kB / 430.8 MB, free: 62.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009549/0.4771, allocations: 8.325 MB / 439.2 MB, free: 58.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.4771, allocations: 8.141 kB / 439.2 MB, free: 58.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006586/0.4837, allocations: 3.631 MB / 442.8 MB, free: 57.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.4848, allocations: 438.1 kB / 443.2 MB, free: 57.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.485, allocations: 27.55 kB / 443.2 MB, free: 57.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008678/0.4859, allocations: 96.98 kB / 443.3 MB, free: 57.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/0.4863, allocations: 101.6 kB / 443.4 MB, free: 57.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-05/0.4864, allocations: 40.03 kB / 443.5 MB, free: 57.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001923/0.4883, allocations: 1.473 MB / 445 MB, free: 56.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4883, allocations: 0 / 445 MB, free: 56.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001931/0.4903, allocations: 0.5242 MB / 445.5 MB, free: 56.52 MB / 350.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 (94): * Single equations (assignments): 88 * 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%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006724/0.497, allocations: 4.848 MB / 450.3 MB, free: 54.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004249/0.5013, allocations: 2.395 MB / 452.7 MB, free: 52.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.854e-06/0.5013, allocations: 0 / 452.7 MB, free: 52.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002459/0.5038, allocations: 1.654 MB / 454.4 MB, free: 50.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/0.5061, allocations: 410.2 kB / 454.8 MB, free: 50.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/0.5327, allocations: 21.09 MB / 475.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.5341, allocations: 2.016 MB / 477.9 MB, free: 26.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001378/0.5355, allocations: 387.6 kB / 478.3 MB, free: 25.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009733/0.5365, allocations: 0.9562 MB / 479.2 MB, free: 24.74 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.5365, allocations: 0 / 479.2 MB, free: 24.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07545/0.6119, allocations: 47.03 MB / 0.5139 GB, free: 10.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.6122, allocations: 274.7 kB / 0.5142 GB, free: 9.777 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/3.67, allocations: 0 / 0.5142 GB, free: 9.777 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1)