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.0007778/0.0007779, allocations: 87.45 kB / 16.31 MB, free: 5.676 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.0007761/0.0007762, allocations: 181.2 kB / 17.21 MB, free: 5.594 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.313/1.313, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002762, allocations: 7.984 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1069, allocations: 50.42 MB / 351.4 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.01256/0.1195, allocations: 11.31 MB / 362.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008407/0.1279, allocations: 3.946 MB / 366.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002409/0.1304, allocations: 71.75 kB / 366.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002934/0.1333, allocations: 0.7263 MB / 367.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004851/0.1382, allocations: 1.075 MB / 368.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002153/0.1404, allocations: 0.5762 MB / 369.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2088/0.3492, allocations: 4.01 MB / 373.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003392/0.3526, allocations: 2.219 MB / 375.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002567/0.3552, allocations: 1.277 MB / 376.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003147/0.3584, allocations: 1.64 MB / 378.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008092/0.3592, allocations: 206.8 kB / 378.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.3609, allocations: 397.9 kB / 378.8 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009999/0.3619, allocations: 0.7679 MB / 379.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001567/0.3635, allocations: 0.739 MB / 380.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008009/0.3715, allocations: 5.531 MB / 385.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3716, allocations: 4 kB / 385.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3716, allocations: 1.188 kB / 385.8 MB, free: 8.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002176/0.3718, allocations: 0 / 385.8 MB, free: 8.273 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01282/0.3846, allocations: 3.766 MB / 389.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.3847, allocations: 9.062 kB / 389.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001795/0.3865, allocations: 446.3 kB / 390.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004493/0.391, allocations: 0.8213 MB / 390.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004636/0.3957, allocations: 2.305 MB / 393.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.3959, allocations: 235.3 kB / 393.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000816/0.3967, allocations: 312 kB / 393.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009096/0.4058, allocations: 4.246 MB / 398 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-05/0.4059, allocations: 0 / 398 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003344/0.4063, allocations: 131.5 kB / 398.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.4064, allocations: 143.8 kB / 398.2 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005731/0.4121, allocations: 3.658 MB / 401.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02318/0.4354, allocations: 13.57 MB / 415.5 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006933/0.4423, allocations: 6.854 MB / 422.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002828/0.4452, allocations: 1.422 MB / 423.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007343/0.4526, allocations: 3.657 MB / 427.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.4527, allocations: 43.56 kB / 427.4 MB, free: 6.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=124): time 3.907e-06/0.4527, allocations: 0 / 427.4 MB, free: 6.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=144): time 0.01444/0.4671, allocations: 6.742 MB / 434.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.4672, allocations: 64.72 kB / 434.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003342/0.4706, allocations: 1.839 MB / 436.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.4707, allocations: 53.7 kB / 436.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009326/0.4717, allocations: 1.425 MB / 437.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000394/0.4721, allocations: 0.4982 MB / 438.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.4722, allocations: 35.94 kB / 438.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.4723, allocations: 373.9 kB / 438.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.4736, allocations: 0.7535 MB / 439.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.4751, allocations: 1.228 MB / 440.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.4766, allocations: 0.981 MB / 441.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.4767, allocations: 4 kB / 441.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004481/0.4811, allocations: 2.659 MB / 444.1 MB, free: 5.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.4812, allocations: 12 kB / 444.1 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.469e-05/0.4812, allocations: 12 kB / 444.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.4826, allocations: 0.4981 MB / 444.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.4841, allocations: 389.4 kB / 445 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008117/0.4922, allocations: 6.394 MB / 451.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.4943, allocations: 79.95 kB / 451.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/0.4946, allocations: 64 kB / 451.5 MB, free: 13.33 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * 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.002343/0.497, allocations: 1.056 MB / 452.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005674/0.4975, allocations: 201.5 kB / 452.8 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004713/0.5023, allocations: 2.496 MB / 455.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.5023, allocations: 15.94 kB / 455.3 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/0.5023, allocations: 11.95 kB / 455.3 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.5023, allocations: 7.969 kB / 455.3 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/0.5124, allocations: 5.547 MB / 460.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.5125, allocations: 0 / 460.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.5135, allocations: 219.9 kB / 461.1 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001255/0.5148, allocations: 0.5004 MB / 461.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.5149, allocations: 28 kB / 461.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009807/0.5247, allocations: 10.46 MB / 472.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.5248, allocations: 10.84 kB / 472.1 MB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006125/0.5309, allocations: 3.572 MB / 475.6 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/0.5323, allocations: 462.5 kB / 476.1 MB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007962/0.5331, allocations: 36 kB / 476.1 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.5346, allocations: 67.95 kB / 476.2 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003662/0.535, allocations: 121 kB / 476.3 MB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.5351, allocations: 36 kB / 476.3 MB, free: 3.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00277/0.5379, allocations: 1.27 MB / 477.6 MB, free: 2.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5379, allocations: 4 kB / 477.6 MB, free: 2.285 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003209/0.5411, allocations: 0.5859 MB / 478.2 MB, free: 1.699 MB / 382.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 (102): * Single equations (assignments): 97 * 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%) 1,(1,100.0%) 12,(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.006231/0.5474, allocations: 4.187 MB / 482.4 MB, free: 13.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004159/0.5516, allocations: 2.392 MB / 484.8 MB, free: 11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5516, allocations: 7.125 kB / 484.8 MB, free: 11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002598/0.5542, allocations: 1.731 MB / 486.5 MB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003189/0.5574, allocations: 0.4929 MB / 487 MB, free: 8.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04185/0.5993, allocations: 17.43 MB / 0.4926 GB, free: 6.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003476/0.6028, allocations: 2.366 MB / 0.4949 GB, free: 3.887 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001885/0.6047, allocations: 420.8 kB / 0.4953 GB, free: 3.473 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001881/0.6066, allocations: 1.148 MB / 0.4965 GB, free: 2.328 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6066, allocations: 0 / 0.4965 GB, free: 2.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2826/0.8892, allocations: 50.87 MB / 0.5461 GB, free: 145.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.8894, allocations: 253.2 kB / 0.5464 GB, free: 145.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.265/4.155, allocations: 0 / 0.5464 GB, free: 145.4 MB / 446.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