Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001555/0.001555, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.685/1.685, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008643/0.0008645, allocations: 95.69 kB / 286.7 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.636e-05/1.638e-05, allocations: 0 / 343.8 MB, free: 8.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 51.48 MB / 395.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3802/0.4861, allocations: 105.6 MB / 0.4891 GB, free: 3.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.4865, allocations: 85.58 kB / 0.4892 GB, free: 3.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1384/0.6249, allocations: 52.96 MB / 0.5409 GB, free: 3.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6249, allocations: 0 / 0.5409 GB, free: 3.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002748/0.6252, allocations: 67.94 kB / 0.541 GB, free: 3.434 MB / 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.007468/0.6327, allocations: 2.739 MB / 0.5436 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.6328, allocations: 8.031 kB / 0.5436 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002083/0.6349, allocations: 400 kB / 0.544 GB, free: 240 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004598/0.6395, allocations: 1.887 MB / 0.5459 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.6397, allocations: 92 kB / 0.546 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008104/0.6405, allocations: 147.9 kB / 0.5461 GB, free: 14.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005848/0.6464, allocations: 2.704 MB / 0.5487 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007176/0.6536, allocations: 3.044 MB / 0.5517 GB, free: 8.152 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.6537, allocations: 15.92 kB / 0.5517 GB, free: 8.137 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004356/0.6541, allocations: 0 / 0.5517 GB, free: 8.137 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.6543, allocations: 104.9 kB / 0.5518 GB, free: 8.031 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01839/0.6727, allocations: 10.42 MB / 0.562 GB, free: 13.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003233/0.6759, allocations: 3.005 MB / 0.5649 GB, free: 10.15 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.6776, allocations: 1.197 MB / 0.5661 GB, free: 8.953 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000336/0.678, allocations: 147.1 kB / 0.5662 GB, free: 8.789 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001592/0.6796, allocations: 1.064 MB / 0.5673 GB, free: 7.695 MB / 442.7 MB Notification: Performance of pre-optimization done (n=159): time 4.027e-06/0.6796, allocations: 0 / 0.5673 GB, free: 7.695 MB / 442.7 MB Notification: Performance of matching and sorting (n=175): time 0.01118/0.6908, allocations: 5.742 MB / 0.5729 GB, free: 1.891 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.6909, allocations: 176.2 kB / 0.5731 GB, free: 1.684 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003083/0.694, allocations: 1.339 MB / 0.5744 GB, free: 348 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.6942, allocations: 37.69 kB / 0.5744 GB, free: 304 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.295/0.9892, allocations: 1.163 MB / 0.5755 GB, free: 89.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009901/0.9902, allocations: 0.544 MB / 0.5761 GB, free: 89.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.9903, allocations: 2.25 kB / 0.5761 GB, free: 89.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.9905, allocations: 381.4 kB / 0.5764 GB, free: 88.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.9917, allocations: 0.9193 MB / 0.5773 GB, free: 88.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.993, allocations: 1.267 MB / 0.5786 GB, free: 88.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.9944, allocations: 1.068 MB / 0.5796 GB, free: 88.56 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.9944, allocations: 3.219 kB / 0.5796 GB, free: 88.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00466/0.9991, allocations: 2.992 MB / 0.5825 GB, free: 88.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.9991, allocations: 9.406 kB / 0.5826 GB, free: 88.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.9992, allocations: 9.219 kB / 0.5826 GB, free: 88.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/1.001, allocations: 0.8418 MB / 0.5834 GB, free: 88.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/1.002, allocations: 334.7 kB / 0.5837 GB, free: 88.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008701/1.011, allocations: 9.172 MB / 0.5927 GB, free: 84.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/1.013, allocations: 104.2 kB / 0.5928 GB, free: 84.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/1.013, allocations: 69.28 kB / 0.5928 GB, free: 84.44 MB / 442.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.000362/1.013, allocations: 160.7 kB / 0.593 GB, free: 84.33 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00396/1.017, allocations: 2.722 MB / 0.5956 GB, free: 84.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003367/1.018, allocations: 187.1 kB / 0.5958 GB, free: 83.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004289/1.022, allocations: 2.878 MB / 0.5986 GB, free: 83.81 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/1.022, allocations: 16.25 kB / 0.5986 GB, free: 83.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/1.022, allocations: 12.72 kB / 0.5987 GB, free: 83.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/1.022, allocations: 9.609 kB / 0.5987 GB, free: 83.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009183/1.031, allocations: 5.696 MB / 0.6042 GB, free: 83.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/1.031, allocations: 3.312 kB / 0.6042 GB, free: 83.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009081/1.032, allocations: 225 kB / 0.6044 GB, free: 83.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002005/1.034, allocations: 0.8944 MB / 0.6053 GB, free: 83.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/1.034, allocations: 16.23 kB / 0.6053 GB, free: 83.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009971/1.044, allocations: 10.62 MB / 0.6157 GB, free: 76.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/1.044, allocations: 3.25 kB / 0.6157 GB, free: 76.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007359/1.052, allocations: 4.403 MB / 0.62 GB, free: 74.96 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/1.053, allocations: 496.5 kB / 0.6205 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006929/1.054, allocations: 18.64 kB / 0.6205 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/1.055, allocations: 85.97 kB / 0.6206 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005391/1.056, allocations: 198 kB / 0.6208 GB, free: 74.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/1.056, allocations: 48.52 kB / 0.6208 GB, free: 74.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002159/1.058, allocations: 1.013 MB / 0.6218 GB, free: 74.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.058, allocations: 0 / 0.6218 GB, free: 74.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003766/1.062, allocations: 0.5709 MB / 0.6224 GB, free: 74.2 MB / 442.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.009623/1.072, allocations: 5.742 MB / 0.628 GB, free: 71.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005756/1.077, allocations: 3.009 MB / 0.6309 GB, free: 69.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/1.078, allocations: 4.156 kB / 0.6309 GB, free: 69.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003819/1.081, allocations: 2.12 MB / 0.633 GB, free: 68.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003252/1.085, allocations: 448.7 kB / 0.6334 GB, free: 68.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/1.099, allocations: 5.278 MB / 0.6386 GB, free: 66.53 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003014/1.102, allocations: 2.236 MB / 0.6407 GB, free: 65.53 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002205/1.104, allocations: 421 kB / 0.6411 GB, free: 65.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001612/1.106, allocations: 0.9969 MB / 0.6421 GB, free: 64.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/1.106, allocations: 0 / 0.6421 GB, free: 64.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09279/1.199, allocations: 50.38 MB / 0.6913 GB, free: 46.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/1.199, allocations: 165 kB / 0.6915 GB, free: 46.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.363/4.562, allocations: 3.234 kB / 0.6915 GB, free: 46.3 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat