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.001222/0.001222, allocations: 89.47 kB / 16.31 MB, free: 6.461 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.001688/0.001688, allocations: 180.5 kB / 17.21 MB, free: 6.336 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.435/1.435, allocations: 223.2 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002675, allocations: 7.656 kB / 300.9 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.09924, allocations: 50.42 MB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.008911/0.1082, allocations: 8.53 MB / 359.9 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006202/0.1144, allocations: 3.348 MB / 363.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.1158, allocations: 39.81 kB / 363.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.1173, allocations: 0.5359 MB / 363.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001941/0.1193, allocations: 0.711 MB / 364.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009199/0.1202, allocations: 315.5 kB / 364.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002905/0.1231, allocations: 2.711 MB / 367.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001647/0.1248, allocations: 1.323 MB / 368.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001452/0.1263, allocations: 0.9182 MB / 369.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001904/0.1282, allocations: 1.323 MB / 371.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002836/0.1285, allocations: 132 kB / 371.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008546/0.1294, allocations: 347.6 kB / 371.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007431/0.1301, allocations: 0.7866 MB / 372.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006501/0.1308, allocations: 0.512 MB / 372.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003537/0.1343, allocations: 3.385 MB / 376.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1343, allocations: 0 / 376.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1343, allocations: 0 / 376.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001218/0.1345, allocations: 4 kB / 376.2 MB, free: 2.535 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.006129/0.1406, allocations: 2.726 MB / 379 MB, free: 15.74 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.1407, allocations: 16.02 kB / 379 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001012/0.1417, allocations: 347.1 kB / 379.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009253/0.1426, allocations: 328.3 kB / 379.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/0.1456, allocations: 1.592 MB / 381.2 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.1458, allocations: 156.1 kB / 381.4 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/0.1461, allocations: 211.9 kB / 381.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005251/0.1514, allocations: 2.735 MB / 384.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.895e-05/0.1515, allocations: 0 / 384.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002399/0.1517, allocations: 84 kB / 384.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002006/0.152, allocations: 100 kB / 384.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004663/0.1566, allocations: 2.307 MB / 386.8 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01499/0.1717, allocations: 8.342 MB / 395.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003078/0.1748, allocations: 1.633 MB / 396.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001905/0.1767, allocations: 1.104 MB / 397.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002549/0.177, allocations: 126 kB / 398 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.177, allocations: 51.5 kB / 398.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.527e-06/0.1771, allocations: 0 / 398.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=132): time 0.0131/0.1902, allocations: 6.498 MB / 404.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.1903, allocations: 72.66 kB / 404.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003444/0.1937, allocations: 2.145 MB / 406.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002548/0.194, allocations: 49.7 kB / 406.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/0.195, allocations: 1.119 MB / 408 MB, free: 2.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005394/0.1956, allocations: 453.4 kB / 408.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.281e-05/0.1957, allocations: 24 kB / 408.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.1959, allocations: 361.9 kB / 408.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.1973, allocations: 0.7691 MB / 409.5 MB, free: 456 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.1989, allocations: 1.021 MB / 410.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.2003, allocations: 0.8965 MB / 411.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.2004, allocations: 3.938 kB / 411.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00546/0.2058, allocations: 2.78 MB / 414.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.2059, allocations: 8 kB / 414.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.119e-05/0.2059, allocations: 8 kB / 414.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/0.208, allocations: 0.7853 MB / 415 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.2092, allocations: 275.6 kB / 415.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.2209, allocations: 8.746 MB / 424.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.2227, allocations: 107.9 kB / 424.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/0.2228, allocations: 47.98 kB / 424.2 MB, free: 1.387 MB / 350.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.001646/0.2245, allocations: 0.7355 MB / 424.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005273/0.225, allocations: 197.6 kB / 425.1 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3023/0.5273, allocations: 2.512 MB / 427.7 MB, free: 63.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.993e-05/0.5275, allocations: 16.22 kB / 427.7 MB, free: 63.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/0.5275, allocations: 5.688 kB / 427.7 MB, free: 63.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-05/0.5275, allocations: 4.078 kB / 427.7 MB, free: 63.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.541, allocations: 4.982 MB / 432.7 MB, free: 62.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/0.5411, allocations: 0.9688 kB / 432.7 MB, free: 62.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.5424, allocations: 223.7 kB / 432.9 MB, free: 62.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/0.5446, allocations: 0.6449 MB / 433.5 MB, free: 62.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.5448, allocations: 35.53 kB / 433.6 MB, free: 62.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009595/0.5544, allocations: 7.921 MB / 441.5 MB, free: 58.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.5544, allocations: 6.844 kB / 441.5 MB, free: 58.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00625/0.5607, allocations: 3.556 MB / 445 MB, free: 57.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.5618, allocations: 442.7 kB / 445.5 MB, free: 56.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/0.5621, allocations: 36.55 kB / 445.5 MB, free: 56.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000877/0.563, allocations: 94.38 kB / 445.6 MB, free: 56.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.5632, allocations: 108.5 kB / 445.7 MB, free: 56.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-05/0.5634, allocations: 37.23 kB / 445.7 MB, free: 56.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002319/0.5657, allocations: 1.506 MB / 447.3 MB, free: 56.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5657, allocations: 0 / 447.3 MB, free: 56.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001701/0.5674, allocations: 0.5336 MB / 447.8 MB, free: 56.17 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 (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.005997/0.5734, allocations: 4.449 MB / 452.2 MB, free: 53.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.577, allocations: 2.396 MB / 454.6 MB, free: 50.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.577, allocations: 0 / 454.6 MB, free: 50.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002176/0.5792, allocations: 1.606 MB / 456.2 MB, free: 49.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.5816, allocations: 439.1 kB / 456.7 MB, free: 48.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02528/0.6069, allocations: 17.07 MB / 473.7 MB, free: 30.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/0.6082, allocations: 1.955 MB / 475.7 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001328/0.6096, allocations: 387.7 kB / 476.1 MB, free: 28.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/0.6107, allocations: 0.9757 MB / 477 MB, free: 27.44 MB / 350.1 MB Notification: Performance of SimCode: time 1.864e-06/0.6107, allocations: 0 / 477 MB, free: 27.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07296/0.6836, allocations: 47.75 MB / 0.5125 GB, free: 12.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002481/0.6839, allocations: 264.7 kB / 0.5127 GB, free: 11.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.017/3.701, allocations: 0 / 0.5127 GB, free: 11.79 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)