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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 179.6 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 102.3 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002856, allocations: 4 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2806, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1678/0.4485, allocations: 111.7 MB / 0.5013 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.4488, allocations: 104.4 kB / 0.5014 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3896/0.8384, allocations: 92.71 MB / 0.5919 GB, free: 21.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.8385, allocations: 0 / 0.5919 GB, free: 21.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002814/0.8388, allocations: 103.9 kB / 0.592 GB, free: 21.43 MB / 378.7 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.01223/0.851, allocations: 4.363 MB / 0.5963 GB, free: 17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.8511, allocations: 15.97 kB / 0.5963 GB, free: 16.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001993/0.8531, allocations: 0.539 MB / 0.5968 GB, free: 16.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004761/0.8579, allocations: 0.8225 MB / 0.5976 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009823/0.8677, allocations: 3.861 MB / 0.6014 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002726/0.868, allocations: 295.8 kB / 0.6016 GB, free: 11.4 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.8693, allocations: 383.9 kB / 0.602 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01074/0.88, allocations: 5.286 MB / 0.6072 GB, free: 5.605 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/0.8802, allocations: 7.906 kB / 0.6072 GB, free: 5.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004226/0.8806, allocations: 164 kB / 0.6073 GB, free: 5.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001659/0.8808, allocations: 167.7 kB / 0.6075 GB, free: 5.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009125/0.8899, allocations: 4.508 MB / 0.6119 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03598/0.9259, allocations: 16.96 MB / 0.6285 GB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.936, allocations: 8.795 MB / 0.6371 GB, free: 5.645 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009402/0.9454, allocations: 4.274 MB / 0.6412 GB, free: 1.281 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002167/0.9477, allocations: 1.348 MB / 0.6425 GB, free: 15.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 4.017e-06/0.9477, allocations: 0 / 0.6425 GB, free: 15.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=194): time 0.02006/0.9678, allocations: 8.811 MB / 0.6511 GB, free: 6.883 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.9679, allocations: 227.6 kB / 0.6514 GB, free: 6.609 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003588/0.9715, allocations: 2.041 MB / 0.6534 GB, free: 4.543 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000256/0.9718, allocations: 61.69 kB / 0.6534 GB, free: 4.477 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001889/0.9737, allocations: 1.71 MB / 0.6551 GB, free: 2.742 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006426/0.9743, allocations: 0.6355 MB / 0.6557 GB, free: 2.098 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.9745, allocations: 44 kB / 0.6558 GB, free: 2.055 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.9747, allocations: 386.1 kB / 0.6561 GB, free: 1.672 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/0.9765, allocations: 1.023 MB / 0.6571 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2226/1.199, allocations: 1.567 MB / 0.6586 GB, free: 78.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002445/1.202, allocations: 1.233 MB / 0.6599 GB, free: 78.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.939e-05/1.202, allocations: 7.312 kB / 0.6599 GB, free: 78.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.00627/1.208, allocations: 3.53 MB / 0.6633 GB, free: 78.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/1.208, allocations: 13.78 kB / 0.6633 GB, free: 78.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-05/1.208, allocations: 17.97 kB / 0.6633 GB, free: 78.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001798/1.21, allocations: 0.7608 MB / 0.6641 GB, free: 78.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/1.212, allocations: 387 kB / 0.6644 GB, free: 78.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/1.222, allocations: 11.1 MB / 0.6753 GB, free: 73.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/1.224, allocations: 144.5 kB / 0.6754 GB, free: 73.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002835/1.224, allocations: 85.97 kB / 0.6755 GB, free: 73.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 (214): * Single equations (assignments): 209 * 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.00345/1.228, allocations: 1.32 MB / 0.6768 GB, free: 72.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008054/1.228, allocations: 247.8 kB / 0.677 GB, free: 72.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005446/1.234, allocations: 3.439 MB / 0.6804 GB, free: 72.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/1.234, allocations: 15.19 kB / 0.6804 GB, free: 72.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.085e-05/1.234, allocations: 15.45 kB / 0.6804 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/1.234, allocations: 11.02 kB / 0.6804 GB, free: 72.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/1.246, allocations: 7.143 MB / 0.6874 GB, free: 71.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/1.246, allocations: 3.812 kB / 0.6874 GB, free: 71.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008981/1.247, allocations: 201.5 kB / 0.6876 GB, free: 71.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/1.249, allocations: 0.9438 MB / 0.6885 GB, free: 71.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/1.249, allocations: 54.22 kB / 0.6886 GB, free: 71.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/1.263, allocations: 15.59 MB / 0.7038 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.263, allocations: 2.438 kB / 0.7038 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006892/1.269, allocations: 5.006 MB / 0.7087 GB, free: 60.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.271, allocations: 0.5573 MB / 0.7092 GB, free: 60.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004041/1.271, allocations: 50.5 kB / 0.7093 GB, free: 60.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/1.273, allocations: 115.3 kB / 0.7094 GB, free: 60.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004935/1.273, allocations: 212.9 kB / 0.7096 GB, free: 60.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/1.273, allocations: 53.36 kB / 0.7096 GB, free: 60.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002188/1.275, allocations: 1.565 MB / 0.7112 GB, free: 59.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.275, allocations: 0 / 0.7112 GB, free: 59.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003505/1.279, allocations: 0.8123 MB / 0.712 GB, free: 59.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 (118): * Single equations (assignments): 109 * 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%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007491/1.286, allocations: 6.227 MB / 0.718 GB, free: 56.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004613/1.291, allocations: 3.338 MB / 0.7213 GB, free: 54.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/1.291, allocations: 0 / 0.7213 GB, free: 54.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003088/1.294, allocations: 2.464 MB / 0.7237 GB, free: 53.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/1.297, allocations: 0.6673 MB / 0.7244 GB, free: 53.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04313/1.34, allocations: 31.07 MB / 0.7547 GB, free: 29.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002926/1.343, allocations: 2.914 MB / 0.7576 GB, free: 26.82 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00226/1.346, allocations: 0.5005 MB / 0.758 GB, free: 26.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002072/1.348, allocations: 1.421 MB / 0.7594 GB, free: 25.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/1.348, allocations: 0 / 0.7594 GB, free: 25.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3274/1.675, allocations: 71.03 MB / 0.8288 GB, free: 91.67 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001447/1.675, allocations: 230 kB / 0.829 GB, free: 91.43 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.124/5.799, allocations: 1.5 kB / 0.829 GB, free: 91.43 MB / 458.7 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