Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.0009994/0.0009993, allocations: 95.62 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.0009604/0.0009603, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.329/1.329, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002573/0.0002573, allocations: 7.031 kB / 300.8 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1113, allocations: 50.41 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.01167/0.123, allocations: 10.37 MB / 361.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00792/0.131, allocations: 4.041 MB / 365.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.1329, allocations: 63.75 kB / 365.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002285/0.1352, allocations: 0.7618 MB / 366.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003602/0.1388, allocations: 1.122 MB / 367.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.1407, allocations: 0.5738 MB / 368.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005231/0.1459, allocations: 2.741 MB / 370.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003926/0.1499, allocations: 2.225 MB / 373.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003251/0.1532, allocations: 1.23 MB / 374.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002803/0.156, allocations: 1.478 MB / 375.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001123/0.1572, allocations: 204 kB / 376 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.1587, allocations: 379.7 kB / 376.4 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007799/0.1595, allocations: 0.7281 MB / 377.1 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.1607, allocations: 0.7382 MB / 377.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00569/0.1664, allocations: 5.493 MB / 383.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1664, allocations: 3.938 kB / 383.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1664, allocations: 0 / 383.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001595/0.1666, allocations: 0 / 383.4 MB, free: 11.3 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.00965/0.1763, allocations: 3.751 MB / 387.1 MB, free: 7.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.1763, allocations: 12.02 kB / 387.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009507/0.1773, allocations: 442.9 kB / 387.6 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004308/0.1816, allocations: 0.8154 MB / 388.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00471/0.1863, allocations: 2.33 MB / 390.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.1865, allocations: 238.2 kB / 390.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005293/0.1871, allocations: 315.9 kB / 391.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007171/0.1942, allocations: 4.211 MB / 395.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.75e-05/0.1943, allocations: 3.984 kB / 395.5 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002847/0.1946, allocations: 128 kB / 395.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001369/0.1948, allocations: 150.2 kB / 395.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006156/0.2009, allocations: 3.651 MB / 399.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02302/0.224, allocations: 13.51 MB / 412.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006078/0.2301, allocations: 6.87 MB / 419.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005574/0.2357, allocations: 3.23 MB / 423 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.2358, allocations: 51.88 kB / 423.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=130): time 3.537e-06/0.2358, allocations: 0 / 423.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=150): time 0.1948/0.4306, allocations: 6.744 MB / 429.8 MB, free: 60.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.4307, allocations: 66.84 kB / 429.9 MB, free: 60.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004324/0.435, allocations: 1.796 MB / 431.7 MB, free: 59.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002379/0.4353, allocations: 54.89 kB / 431.7 MB, free: 59.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.4365, allocations: 1.413 MB / 433.1 MB, free: 59.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000584/0.4371, allocations: 0.5081 MB / 433.6 MB, free: 58.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.4373, allocations: 35.12 kB / 433.7 MB, free: 58.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.4374, allocations: 377.1 kB / 434 MB, free: 58.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00205/0.4395, allocations: 0.7809 MB / 434.8 MB, free: 58.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/0.4417, allocations: 1.226 MB / 436 MB, free: 58.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00245/0.4442, allocations: 0.9938 MB / 437 MB, free: 57.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.4442, allocations: 4.125 kB / 437 MB, free: 57.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006742/0.4509, allocations: 2.697 MB / 439.7 MB, free: 56.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.451, allocations: 15.52 kB / 439.8 MB, free: 56.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.488e-05/0.4511, allocations: 12.88 kB / 439.8 MB, free: 56.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/0.4529, allocations: 494.7 kB / 440.2 MB, free: 56.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/0.4551, allocations: 396.9 kB / 440.6 MB, free: 56.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/0.4652, allocations: 6.527 MB / 447.2 MB, free: 51.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002227/0.4674, allocations: 74.19 kB / 447.2 MB, free: 51.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002397/0.4677, allocations: 71.84 kB / 447.3 MB, free: 51.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (184): * Single equations (assignments): 182 * 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,(7,61.2%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002686/0.4704, allocations: 1.059 MB / 448.4 MB, free: 51.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005499/0.471, allocations: 199.7 kB / 448.6 MB, free: 51.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004638/0.4756, allocations: 2.558 MB / 451.1 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.4756, allocations: 14.5 kB / 451.1 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.877e-05/0.4757, allocations: 11.73 kB / 451.1 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/0.4757, allocations: 9.359 kB / 451.2 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.4869, allocations: 5.587 MB / 456.7 MB, free: 46.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.487, allocations: 0 / 456.7 MB, free: 46.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/0.4886, allocations: 235.9 kB / 457 MB, free: 46.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001712/0.4903, allocations: 0.4899 MB / 457.5 MB, free: 45.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.4904, allocations: 31.98 kB / 457.5 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/0.5015, allocations: 10.58 MB / 468.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/0.5015, allocations: 10.53 kB / 468.1 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00682/0.5083, allocations: 3.744 MB / 471.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/0.5097, allocations: 466.5 kB / 472.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003896/0.5101, allocations: 32 kB / 472.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.5113, allocations: 75.94 kB / 472.4 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003347/0.5117, allocations: 121 kB / 472.5 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.5118, allocations: 41.53 kB / 472.5 MB, free: 30.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002276/0.5141, allocations: 1.239 MB / 473.8 MB, free: 28.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5141, allocations: 0 / 473.8 MB, free: 28.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002938/0.5171, allocations: 0.582 MB / 474.4 MB, free: 28.21 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * 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 (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007146/0.5242, allocations: 4.749 MB / 479.1 MB, free: 23.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005063/0.5293, allocations: 2.445 MB / 481.6 MB, free: 20.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.5294, allocations: 0 / 481.6 MB, free: 20.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002136/0.5315, allocations: 1.745 MB / 483.3 MB, free: 19.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002339/0.5339, allocations: 499.4 kB / 483.8 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03711/0.571, allocations: 26.13 MB / 0.498 GB, free: 7.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003491/0.5746, allocations: 2.425 MB / 0.5003 GB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00197/0.5765, allocations: 432.9 kB / 0.5008 GB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001723/0.5783, allocations: 1.124 MB / 0.5019 GB, free: 3.375 MB / 366.1 MB Notification: Performance of SimCode: time 1.323e-06/0.5783, allocations: 4 kB / 0.5019 GB, free: 3.371 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08428/0.6626, allocations: 50.6 MB / 0.5513 GB, free: 1.238 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003173/0.663, allocations: 252.5 kB / 0.5515 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.133/3.796, allocations: 0 / 0.5515 GB, free: 0.9023 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat