Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.0009528/0.0009528, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 221.5 MB / 230.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008494/0.0008494, allocations: 99.34 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.995e-05/1.998e-05, allocations: 4 kB / 337.1 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09594/0.09598, allocations: 50.43 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.378/0.474, allocations: 104.7 MB / 492.3 MB, free: 5.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.4744, allocations: 87.95 kB / 492.4 MB, free: 5.785 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.135/0.6093, allocations: 52.85 MB / 0.5325 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6094, allocations: 0 / 0.5325 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002093/0.6096, allocations: 71.94 kB / 0.5325 GB, free: 464 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.005803/0.6154, allocations: 2.722 MB / 0.5352 GB, free: 13.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.6155, allocations: 8.031 kB / 0.5352 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009945/0.6165, allocations: 356 kB / 0.5355 GB, free: 13.31 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003538/0.62, allocations: 1.882 MB / 0.5374 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.6202, allocations: 95.98 kB / 0.5375 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003493/0.6205, allocations: 156.2 kB / 0.5376 GB, free: 11.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004751/0.6253, allocations: 2.696 MB / 0.5403 GB, free: 8.426 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0049/0.6302, allocations: 3.046 MB / 0.5432 GB, free: 5.227 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.54e-05/0.6303, allocations: 15.92 kB / 0.5432 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001961/0.6305, allocations: 0 / 0.5432 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/0.6306, allocations: 104.9 kB / 0.5433 GB, free: 5.105 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2853/0.9159, allocations: 10.41 MB / 0.5535 GB, free: 99.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003746/0.9197, allocations: 2.995 MB / 0.5564 GB, free: 98.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001972/0.9217, allocations: 1.198 MB / 0.5576 GB, free: 98.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003896/0.9221, allocations: 140.6 kB / 0.5577 GB, free: 98.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002189/0.9243, allocations: 1.067 MB / 0.5588 GB, free: 98.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 1.406e-05/0.9244, allocations: 1.125 kB / 0.5588 GB, free: 98.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=175): time 0.01341/0.9378, allocations: 5.737 MB / 0.5644 GB, free: 97.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.869e-05/0.9379, allocations: 181.9 kB / 0.5646 GB, free: 97.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003352/0.9413, allocations: 1.335 MB / 0.5659 GB, free: 97.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002701/0.9416, allocations: 27.78 kB / 0.5659 GB, free: 97.42 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/0.9428, allocations: 1.187 MB / 0.567 GB, free: 97.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005702/0.9433, allocations: 0.5432 MB / 0.5676 GB, free: 96.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.302e-05/0.9434, allocations: 0 / 0.5676 GB, free: 96.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.9436, allocations: 376.7 kB / 0.5679 GB, free: 96.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.945, allocations: 0.9135 MB / 0.5688 GB, free: 96.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.9465, allocations: 1.278 MB / 0.5701 GB, free: 96.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.9481, allocations: 1.068 MB / 0.5711 GB, free: 96.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.9481, allocations: 3.094 kB / 0.5711 GB, free: 96.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004926/0.953, allocations: 2.991 MB / 0.574 GB, free: 95.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.9531, allocations: 8.406 kB / 0.5741 GB, free: 95.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.9531, allocations: 11 kB / 0.5741 GB, free: 95.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00172/0.9549, allocations: 0.8486 MB / 0.5749 GB, free: 95.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.9561, allocations: 339.6 kB / 0.5752 GB, free: 95.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008376/0.9645, allocations: 9.162 MB / 0.5842 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/0.9666, allocations: 109.7 kB / 0.5843 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/0.9668, allocations: 66.88 kB / 0.5843 GB, free: 89.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004437/0.9672, allocations: 162.5 kB / 0.5845 GB, free: 89.79 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004198/0.9714, allocations: 2.72 MB / 0.5871 GB, free: 88.81 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.9717, allocations: 188.5 kB / 0.5873 GB, free: 88.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004101/0.9758, allocations: 2.874 MB / 0.5901 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.9758, allocations: 15.41 kB / 0.5901 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.9759, allocations: 14.28 kB / 0.5902 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.9759, allocations: 7.547 kB / 0.5902 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009109/0.985, allocations: 5.699 MB / 0.5957 GB, free: 85.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.9851, allocations: 3 kB / 0.5957 GB, free: 85.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009106/0.986, allocations: 223.6 kB / 0.5959 GB, free: 85.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/0.9879, allocations: 0.8965 MB / 0.5968 GB, free: 85.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.9881, allocations: 18.53 kB / 0.5968 GB, free: 85.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00874/0.9968, allocations: 10.61 MB / 0.6072 GB, free: 77.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.9969, allocations: 2.625 kB / 0.6072 GB, free: 77.92 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005389/1.002, allocations: 4.408 MB / 0.6115 GB, free: 75.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.003, allocations: 492.5 kB / 0.612 GB, free: 75.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/1.004, allocations: 13.06 kB / 0.612 GB, free: 75.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009949/1.005, allocations: 91.14 kB / 0.6121 GB, free: 75.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004111/1.005, allocations: 199 kB / 0.6123 GB, free: 75.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.833e-05/1.005, allocations: 42.28 kB / 0.6123 GB, free: 75.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001264/1.007, allocations: 1.008 MB / 0.6133 GB, free: 75.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.007, allocations: 0 / 0.6133 GB, free: 75.23 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002353/1.009, allocations: 0.5697 MB / 0.6139 GB, free: 75.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0064/1.015, allocations: 5.754 MB / 0.6195 GB, free: 72.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003927/1.019, allocations: 3.005 MB / 0.6224 GB, free: 70.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/1.019, allocations: 3.406 kB / 0.6224 GB, free: 70.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002585/1.022, allocations: 2.131 MB / 0.6245 GB, free: 69.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/1.024, allocations: 436.7 kB / 0.6249 GB, free: 69.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008285/1.032, allocations: 5.28 MB / 0.6301 GB, free: 64.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001485/1.034, allocations: 2.234 MB / 0.6322 GB, free: 62.94 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001226/1.035, allocations: 424.7 kB / 0.6326 GB, free: 62.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/1.036, allocations: 0.9928 MB / 0.6336 GB, free: 61.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/1.036, allocations: 0 / 0.6336 GB, free: 61.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08434/1.121, allocations: 50.3 MB / 0.6827 GB, free: 17.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/1.121, allocations: 157.3 kB / 0.6829 GB, free: 17.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.315/4.436, allocations: 0 / 0.6829 GB, free: 17.6 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat