Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",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.001473/0.001473, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001559/0.001559, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.534/1.534, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002642, allocations: 6.453 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1184, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.008051/0.1265, allocations: 7.209 MB / 358.4 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005224/0.1317, allocations: 2.772 MB / 361.2 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009876/0.1328, allocations: 31.88 kB / 361.2 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.134, allocations: 0.5053 MB / 361.7 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.1358, allocations: 0.6115 MB / 362.4 MB, free: 496 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.1363, allocations: 199.6 kB / 362.6 MB, free: 296 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002564/0.1389, allocations: 1.524 MB / 364.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00165/0.1406, allocations: 1.223 MB / 365.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.1418, allocations: 0.7356 MB / 366 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.143, allocations: 0.9611 MB / 367 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001973/0.1432, allocations: 116 kB / 367.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004863/0.1437, allocations: 179.9 kB / 367.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005428/0.1443, allocations: 0.5842 MB / 367.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004333/0.1447, allocations: 448.6 kB / 368.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002479/0.1472, allocations: 2.922 MB / 371.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1472, allocations: 3.938 kB / 371.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1472, allocations: 0 / 371.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.318e-05/0.1473, allocations: 0 / 371.2 MB, free: 7.551 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.00434/0.1516, allocations: 2.212 MB / 373.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.1517, allocations: 8.031 kB / 373.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004609/0.1521, allocations: 265.8 kB / 373.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007157/0.1529, allocations: 261.2 kB / 374 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.1553, allocations: 1.318 MB / 375.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.966e-05/0.1554, allocations: 131.6 kB / 375.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002621/0.1557, allocations: 191.8 kB / 375.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003836/0.1595, allocations: 2.382 MB / 378 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.317e-05/0.1596, allocations: 11.89 kB / 378 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.1598, allocations: 75.98 kB / 378.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-05/0.1599, allocations: 87.5 kB / 378.2 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003322/0.1632, allocations: 2.016 MB / 380.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01188/0.1751, allocations: 7.452 MB / 387.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.1769, allocations: 1.287 MB / 388.9 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002291/0.1772, allocations: 114.1 kB / 389 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1772, allocations: 51.45 kB / 389.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 2.434e-06/0.1772, allocations: 0 / 389.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=100): time 0.008894/0.1861, allocations: 4.938 MB / 394 MB, free: 208 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.1862, allocations: 60.41 kB / 394.1 MB, free: 136 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.1882, allocations: 1.326 MB / 395.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.1883, allocations: 41.7 kB / 395.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005968/0.1889, allocations: 0.897 MB / 396.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.1892, allocations: 351 kB / 396.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.112e-05/0.1893, allocations: 20 kB / 396.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1894, allocations: 357.9 kB / 397 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009341/0.1904, allocations: 0.6428 MB / 397.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.1915, allocations: 0.9259 MB / 398.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.1926, allocations: 0.7759 MB / 399.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.1926, allocations: 4 kB / 399.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003973/0.1966, allocations: 2.422 MB / 401.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.1966, allocations: 8 kB / 401.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.1966, allocations: 8 kB / 401.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.1984, allocations: 0.7361 MB / 402.6 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008227/0.1992, allocations: 239.6 kB / 402.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/0.2097, allocations: 8.549 MB / 411.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.2111, allocations: 91.84 kB / 411.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.2112, allocations: 44 kB / 411.5 MB, free: 14.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (111): * Single equations (assignments): 109 * Array equations: 0 * 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%) 1,(6,77.8%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001415/0.2126, allocations: 0.6262 MB / 412.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003745/0.213, allocations: 146.4 kB / 412.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.2163, allocations: 1.924 MB / 414.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.2164, allocations: 8 kB / 414.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.2164, allocations: 4 kB / 414.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2164, allocations: 7.984 kB / 414.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006787/0.2232, allocations: 3.988 MB / 418.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.2232, allocations: 0 / 418.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007763/0.224, allocations: 183.7 kB / 418.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.2252, allocations: 463.1 kB / 418.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-05/0.2253, allocations: 27.98 kB / 418.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006602/0.2319, allocations: 6.268 MB / 425.1 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.679e-06/0.2319, allocations: 11.95 kB / 425.1 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2241/0.456, allocations: 2.902 MB / 428 MB, free: 62.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009574/0.457, allocations: 354.2 kB / 428.4 MB, free: 62.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002051/0.4572, allocations: 23.56 kB / 428.4 MB, free: 62.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000781/0.458, allocations: 80.98 kB / 428.5 MB, free: 62.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.4583, allocations: 81.22 kB / 428.6 MB, free: 62.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.386e-05/0.4584, allocations: 27.73 kB / 428.6 MB, free: 62.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001629/0.4601, allocations: 0.9113 MB / 429.5 MB, free: 62.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4601, allocations: 0 / 429.5 MB, free: 62.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001641/0.4617, allocations: 429 kB / 429.9 MB, free: 62.4 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (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) * 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 (84): * Single equations (assignments): 80 * Array equations: 0 * 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%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005695/0.4674, allocations: 3.966 MB / 433.9 MB, free: 61.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004338/0.4718, allocations: 2.039 MB / 435.9 MB, free: 60.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/0.4718, allocations: 5.312 kB / 435.9 MB, free: 60.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.4741, allocations: 1.349 MB / 437.3 MB, free: 60.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/0.4762, allocations: 347.3 kB / 437.6 MB, free: 60.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/0.499, allocations: 18.14 MB / 455.8 MB, free: 48.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.5001, allocations: 1.731 MB / 457.5 MB, free: 47.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009902/0.5011, allocations: 308 kB / 457.8 MB, free: 46.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006866/0.5018, allocations: 0.6984 MB / 458.5 MB, free: 46.16 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5018, allocations: 4 kB / 458.5 MB, free: 46.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05682/0.5586, allocations: 36.47 MB / 495 MB, free: 10.1 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002634/0.559, allocations: 226.1 kB / 495.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.632/3.191, allocations: 2.812 kB / 495.2 MB, free: 9.859 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat