Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 198.1 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.511/1.511, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001242/0.001242, allocations: 99.02 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.348e-05/2.349e-05, allocations: 0 / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1114, allocations: 51.48 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3669/0.4784, allocations: 118.5 MB / 0.5017 GB, free: 7.117 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.4787, allocations: 94.11 kB / 0.5018 GB, free: 7.066 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7713/1.25, allocations: 225.5 MB / 0.722 GB, free: 18.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.984e-06/1.25, allocations: 0 / 0.722 GB, free: 18.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001229/1.251, allocations: 250.8 kB / 0.7223 GB, free: 18.49 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.03024/1.282, allocations: 9.659 MB / 0.7317 GB, free: 8.754 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/1.282, allocations: 12.03 kB / 0.7317 GB, free: 8.742 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01272/1.294, allocations: 2.215 MB / 0.7339 GB, free: 6.516 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.322/1.616, allocations: 8.987 MB / 0.7427 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008401/1.617, allocations: 329.7 kB / 0.743 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003906/1.621, allocations: 0.5858 MB / 0.7436 GB, free: 26.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02512/1.646, allocations: 10.79 MB / 0.7541 GB, free: 26.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03279/1.679, allocations: 12.29 MB / 0.7661 GB, free: 25.37 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003559/1.679, allocations: 8.719 kB / 0.7661 GB, free: 25.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00224/1.682, allocations: 8.844 kB / 0.7661 GB, free: 25.37 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003787/1.682, allocations: 459.6 kB / 0.7666 GB, free: 25.35 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08969/1.772, allocations: 42.53 MB / 0.8081 GB, free: 16.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02676/1.799, allocations: 26.31 MB / 0.8338 GB, free: 9.219 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01198/1.811, allocations: 6.064 MB / 0.8397 GB, free: 7.449 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02906/1.84, allocations: 13.14 MB / 0.8525 GB, free: 17.09 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.456e-05/1.84, allocations: 80.25 kB / 0.8526 GB, free: 17.02 MB / 474.7 MB Notification: Performance of pre-optimization done (n=421): time 6.332e-06/1.84, allocations: 0 / 0.8526 GB, free: 17.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=427): time 0.0336/1.874, allocations: 14.94 MB / 0.8672 GB, free: 10.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/1.874, allocations: 100.5 kB / 0.8673 GB, free: 10.67 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007611/1.881, allocations: 3.813 MB / 0.871 GB, free: 9.203 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/1.882, allocations: 29.05 kB / 0.8711 GB, free: 9.172 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003747/1.886, allocations: 4.456 MB / 0.8754 GB, free: 5.809 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002027/1.888, allocations: 1.357 MB / 0.8767 GB, free: 4.734 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003357/1.888, allocations: 0 / 0.8767 GB, free: 4.734 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000319/1.889, allocations: 0.4883 MB / 0.8772 GB, free: 4.348 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003118/1.892, allocations: 2.229 MB / 0.8794 GB, free: 3.422 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004354/1.896, allocations: 3.335 MB / 0.8826 GB, free: 1.164 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006726/1.903, allocations: 3.234 MB / 0.8858 GB, free: 16 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.387e-05/1.903, allocations: 16.92 kB / 0.8858 GB, free: 15.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.01646/1.92, allocations: 8.033 MB / 0.8937 GB, free: 12.95 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.771e-05/1.92, allocations: 16.69 kB / 0.8937 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.789e-05/1.92, allocations: 38.45 kB / 0.8937 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003904/1.924, allocations: 1.6 MB / 0.8953 GB, free: 11.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004695/1.928, allocations: 0.9665 MB / 0.8962 GB, free: 10.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02709/1.956, allocations: 27.09 MB / 0.9227 GB, free: 416 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004972/1.961, allocations: 144.2 kB / 0.9228 GB, free: 308 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/1.962, allocations: 187.8 kB / 0.923 GB, free: 124 kB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 505 * 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: 14 * 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: 14 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,75.0%) 24,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.3459/2.308, allocations: 227.2 kB / 0.9232 GB, free: 82.4 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.015/2.323, allocations: 7.594 MB / 0.9306 GB, free: 81.78 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001829/2.325, allocations: 0.525 MB / 0.9311 GB, free: 81.78 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01486/2.339, allocations: 8.014 MB / 0.939 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.237e-05/2.34, allocations: 48.23 kB / 0.939 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.773e-05/2.34, allocations: 31.31 kB / 0.939 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-05/2.34, allocations: 18.61 kB / 0.9391 GB, free: 81.02 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03009/2.37, allocations: 15.55 MB / 0.9542 GB, free: 79.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-05/2.37, allocations: 3.188 kB / 0.9542 GB, free: 79.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002362/2.372, allocations: 456.6 kB / 0.9547 GB, free: 79.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005487/2.378, allocations: 2.331 MB / 0.957 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008574/2.379, allocations: 38.53 kB / 0.957 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03596/2.415, allocations: 34.68 MB / 0.9909 GB, free: 63.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/2.415, allocations: 7.219 kB / 0.9909 GB, free: 63.74 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01998/2.435, allocations: 11.78 MB / 1.002 GB, free: 62.31 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004074/2.439, allocations: 1.136 MB / 1.003 GB, free: 61.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002254/2.441, allocations: 20.03 kB / 1.004 GB, free: 61.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004239/2.445, allocations: 192.4 kB / 1.004 GB, free: 61.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001672/2.447, allocations: 432.2 kB / 1.004 GB, free: 61.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003991/2.447, allocations: 114.5 kB / 1.004 GB, free: 61.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006082/2.454, allocations: 2.841 MB / 1.007 GB, free: 61.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.71e-07/2.454, allocations: 0 / 1.007 GB, free: 61.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009157/2.463, allocations: 1.711 MB / 1.009 GB, free: 61.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 225 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 8,(6,80.6%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02207/2.485, allocations: 13.36 MB / 1.022 GB, free: 55.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01224/2.497, allocations: 7.456 MB / 1.029 GB, free: 51.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/2.497, allocations: 6.656 kB / 1.029 GB, free: 51.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009028/2.506, allocations: 5.375 MB / 1.034 GB, free: 48.64 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008046/2.514, allocations: 1.205 MB / 1.035 GB, free: 48.37 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0436/2.558, allocations: 17.68 MB / 1.053 GB, free: 41.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01007/2.568, allocations: 6.565 MB / 1.059 GB, free: 39.42 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00559/2.574, allocations: 1.175 MB / 1.06 GB, free: 38.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006853/2.581, allocations: 3.933 MB / 1.064 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of SimCode: time 1.463e-06/2.581, allocations: 0 / 1.064 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5058/3.086, allocations: 144 MB / 1.205 GB, free: 59.68 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/3.087, allocations: 217.8 kB / 1.205 GB, free: 59.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.138/9.224, allocations: 7.938 kB / 1.205 GB, free: 59.39 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat does not exist to compare? outputFormat=mat