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_YD.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_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",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.0007841/0.0007841, allocations: 88.95 kB / 16.31 MB, free: 6.449 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.0008839/0.0008838, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.333/1.333, allocations: 223.2 MB / 241.2 MB, free: 5.305 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002718, allocations: 5.844 kB / 300.9 MB, free: 5.578 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1027, allocations: 50.43 MB / 351.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.01369/0.1165, allocations: 12.52 MB / 363.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009448/0.126, allocations: 4.289 MB / 368.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002756/0.1288, allocations: 79.69 kB / 368.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002765/0.1316, allocations: 0.8 MB / 369 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004104/0.1357, allocations: 1.201 MB / 370.2 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.1376, allocations: 0.6195 MB / 370.9 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006855/0.1445, allocations: 5.068 MB / 375.9 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003717/0.1482, allocations: 2.737 MB / 378.7 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/0.1511, allocations: 1.591 MB / 380.3 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003498/0.1546, allocations: 2.031 MB / 382.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000739/0.1554, allocations: 248 kB / 382.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001622/0.157, allocations: 435.8 kB / 383 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001031/0.158, allocations: 0.9926 MB / 383.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.1594, allocations: 0.9019 MB / 384.8 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006845/0.1663, allocations: 6.728 MB / 391.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1663, allocations: 0 / 391.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1663, allocations: 0 / 391.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001671/0.1665, allocations: 0 / 391.6 MB, free: 2.984 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: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.01112/0.1776, allocations: 4.571 MB / 396.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1777, allocations: 8.031 kB / 396.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0012/0.1789, allocations: 0.5311 MB / 396.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004279/0.1832, allocations: 0.9119 MB / 397.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005051/0.1883, allocations: 2.805 MB / 400.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002425/0.1885, allocations: 291.8 kB / 400.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006144/0.1891, allocations: 387.9 kB / 401.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009486/0.1986, allocations: 5.356 MB / 406.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.563e-05/0.1987, allocations: 19.83 kB / 406.4 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003537/0.1991, allocations: 156 kB / 406.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001742/0.1993, allocations: 171.7 kB / 406.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008559/0.2079, allocations: 4.73 MB / 411.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.248/0.4559, allocations: 16.98 MB / 428.5 MB, free: 54.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007984/0.4639, allocations: 8.779 MB / 437.2 MB, free: 48.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00346/0.4674, allocations: 1.885 MB / 439.1 MB, free: 48.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00942/0.4769, allocations: 4.885 MB / 444 MB, free: 47.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002364/0.4793, allocations: 1.316 MB / 445.3 MB, free: 47.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=185): time 4.698e-06/0.4793, allocations: 1.312 kB / 445.3 MB, free: 47.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=188): time 0.01813/0.4975, allocations: 8.715 MB / 454.1 MB, free: 43.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.4976, allocations: 228 kB / 454.3 MB, free: 43.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003349/0.501, allocations: 2.294 MB / 456.6 MB, free: 42.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002144/0.5012, allocations: 61.33 kB / 456.6 MB, free: 42.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.5025, allocations: 1.738 MB / 458.4 MB, free: 40.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004899/0.503, allocations: 0.6152 MB / 459 MB, free: 40.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.5031, allocations: 47.53 kB / 459 MB, free: 40.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.5032, allocations: 396.7 kB / 459.4 MB, free: 39.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/0.5047, allocations: 1.022 MB / 460.4 MB, free: 39.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.5064, allocations: 1.636 MB / 462.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.508, allocations: 1.252 MB / 463.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.185e-06/0.508, allocations: 6.031 kB / 463.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005011/0.513, allocations: 3.575 MB / 466.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.5131, allocations: 14.19 kB / 466.9 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.633e-05/0.5131, allocations: 16 kB / 466.9 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.5146, allocations: 0.7643 MB / 467.7 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.516, allocations: 399.3 kB / 468.1 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00912/0.5251, allocations: 10.83 MB / 478.9 MB, free: 22.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/0.5275, allocations: 148 kB / 479.1 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003588/0.5279, allocations: 91.97 kB / 479.2 MB, free: 21.78 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 214 * 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: 4 * 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: 4 {(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002565/0.5304, allocations: 1.319 MB / 480.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006127/0.5311, allocations: 249 kB / 480.7 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00541/0.5365, allocations: 3.381 MB / 484.1 MB, free: 16.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.5365, allocations: 20 kB / 484.1 MB, free: 16.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.894e-05/0.5366, allocations: 15.88 kB / 484.1 MB, free: 16.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.769e-05/0.5366, allocations: 11.92 kB / 484.1 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.5477, allocations: 7.033 MB / 491.2 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.5477, allocations: 4 kB / 491.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007634/0.5485, allocations: 187.7 kB / 491.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001947/0.5505, allocations: 0.9346 MB / 492.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.5506, allocations: 43.98 kB / 492.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01523/0.5659, allocations: 15.23 MB / 0.4957 GB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.495e-05/0.5659, allocations: 4.031 kB / 0.4957 GB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008156/0.5741, allocations: 4.805 MB / 0.5004 GB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.5754, allocations: 0.5526 MB / 0.5009 GB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005705/0.576, allocations: 47.98 kB / 0.501 GB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.5772, allocations: 107.9 kB / 0.5011 GB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005037/0.5777, allocations: 209.7 kB / 0.5013 GB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.5779, allocations: 51.98 kB / 0.5013 GB, free: 2.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002665/0.5805, allocations: 1.57 MB / 0.5028 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5805, allocations: 8 kB / 0.5028 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003027/0.5836, allocations: 0.7738 MB / 0.5036 GB, free: 164 kB / 366.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008123/0.5917, allocations: 5.442 MB / 0.5089 GB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005341/0.5971, allocations: 3.315 MB / 0.5122 GB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5971, allocations: 0 / 0.5122 GB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003737/0.6009, allocations: 2.454 MB / 0.5145 GB, free: 4.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003235/0.6041, allocations: 0.6787 MB / 0.5152 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04464/0.6488, allocations: 22.24 MB / 0.5369 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/0.6519, allocations: 2.84 MB / 0.5397 GB, free: 9.523 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001969/0.6539, allocations: 0.5208 MB / 0.5402 GB, free: 8.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/0.6558, allocations: 1.444 MB / 0.5416 GB, free: 7.551 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6558, allocations: 0 / 0.5416 GB, free: 7.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2951/0.9509, allocations: 67.02 MB / 0.6071 GB, free: 136.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.9512, allocations: 256.6 kB / 0.6073 GB, free: 136.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.417/4.368, allocations: 0 / 0.6073 GB, free: 136.3 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YD_res.mat does not exist to compare? outputFormat=mat