Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.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.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 176.4 kB / 8.349 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.447/1.447, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008962/0.0008961, allocations: 101.7 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.905e-05/1.909e-05, allocations: 0 / 337.2 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 50.43 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3843/0.4929, allocations: 117.2 MB / 0.493 GB, free: 9.395 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.4932, allocations: 99.92 kB / 0.4931 GB, free: 9.297 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.001/1.494, allocations: 218.9 MB / 0.7069 GB, free: 38.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.494, allocations: 2.719 kB / 0.7069 GB, free: 38.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001367/1.495, allocations: 247.7 kB / 0.7071 GB, free: 38.71 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.03622/1.531, allocations: 9.609 MB / 0.7165 GB, free: 36.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/1.532, allocations: 12.8 kB / 0.7165 GB, free: 36.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01397/1.546, allocations: 2.124 MB / 0.7186 GB, free: 36.01 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.028/1.574, allocations: 8.892 MB / 0.7272 GB, free: 34.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001105/1.575, allocations: 328.5 kB / 0.7276 GB, free: 34.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004911/1.58, allocations: 0.5856 MB / 0.7281 GB, free: 34.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02757/1.607, allocations: 10.8 MB / 0.7387 GB, free: 34.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04049/1.648, allocations: 12.29 MB / 0.7507 GB, free: 33.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005519/1.648, allocations: 13.28 kB / 0.7507 GB, free: 33.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003356/1.652, allocations: 13.97 kB / 0.7507 GB, free: 33.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004516/1.652, allocations: 455.8 kB / 0.7511 GB, free: 33.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09141/1.744, allocations: 42.11 MB / 0.7923 GB, free: 22.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02582/1.769, allocations: 24.28 MB / 0.816 GB, free: 1.156 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009106/1.779, allocations: 4.746 MB / 0.8206 GB, free: 15.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02777/1.806, allocations: 11.77 MB / 0.8321 GB, free: 9.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/1.807, allocations: 82.31 kB / 0.8322 GB, free: 9.676 MB / 458.7 MB Notification: Performance of pre-optimization done (n=421): time 1.29e-05/1.807, allocations: 0 / 0.8322 GB, free: 9.676 MB / 458.7 MB Notification: Performance of matching and sorting (n=427): time 0.03458/1.841, allocations: 14.04 MB / 0.8459 GB, free: 3.211 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.948e-05/1.841, allocations: 95.42 kB / 0.846 GB, free: 3.145 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01026/1.852, allocations: 3.771 MB / 0.8497 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001248/1.853, allocations: 29.7 kB / 0.8497 GB, free: 0.5703 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006315/1.859, allocations: 4.608 MB / 0.8542 GB, free: 13.32 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002218/1.862, allocations: 1.369 MB / 0.8555 GB, free: 12.06 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008476/1.862, allocations: 0 / 0.8555 GB, free: 12.06 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005227/1.863, allocations: 494.7 kB / 0.856 GB, free: 11.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004364/1.867, allocations: 2.167 MB / 0.8581 GB, free: 9.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005041/1.872, allocations: 3.284 MB / 0.8613 GB, free: 6.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006119/1.879, allocations: 3.015 MB / 0.8643 GB, free: 3.738 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.171e-05/1.879, allocations: 8 kB / 0.8643 GB, free: 3.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02448/1.903, allocations: 8.107 MB / 0.8722 GB, free: 14.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.874e-05/1.903, allocations: 21.41 kB / 0.8722 GB, free: 14.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-05/1.903, allocations: 35.95 kB / 0.8723 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003643/1.907, allocations: 1.431 MB / 0.8737 GB, free: 13.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004742/1.912, allocations: 0.9741 MB / 0.8746 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3106/2.222, allocations: 25.65 MB / 0.8997 GB, free: 68.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005206/2.228, allocations: 140.6 kB / 0.8998 GB, free: 68.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001332/2.229, allocations: 187.6 kB / 0.9 GB, free: 68.18 MB / 490.7 MB 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 (526): * Single equations (assignments): 510 * 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%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,56.2%) 22,(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.001241/2.23, allocations: 236.7 kB / 0.9002 GB, free: 68.07 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01379/2.244, allocations: 7.121 MB / 0.9071 GB, free: 67.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002241/2.246, allocations: 0.5205 MB / 0.9077 GB, free: 67.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01582/2.262, allocations: 7.541 MB / 0.915 GB, free: 66.64 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-05/2.262, allocations: 40.5 kB / 0.9151 GB, free: 66.64 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-05/2.262, allocations: 28.97 kB / 0.9151 GB, free: 66.64 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001185/2.263, allocations: 27.88 kB / 0.9151 GB, free: 66.64 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0305/2.293, allocations: 14.9 MB / 0.9297 GB, free: 65.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2e-05/2.293, allocations: 3.25 kB / 0.9297 GB, free: 65.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/2.295, allocations: 463.6 kB / 0.9301 GB, free: 65.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004934/2.3, allocations: 2.154 MB / 0.9322 GB, free: 65.39 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007179/2.301, allocations: 37.86 kB / 0.9322 GB, free: 65.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02962/2.331, allocations: 33.31 MB / 0.9648 GB, free: 49.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/2.331, allocations: 7.188 kB / 0.9648 GB, free: 49.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01607/2.347, allocations: 11.2 MB / 0.9757 GB, free: 47.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00345/2.35, allocations: 1.126 MB / 0.9768 GB, free: 47.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/2.352, allocations: 17.84 kB / 0.9768 GB, free: 47.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00328/2.355, allocations: 190.6 kB / 0.977 GB, free: 47.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009995/2.356, allocations: 432.7 kB / 0.9774 GB, free: 47.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002831/2.356, allocations: 114.1 kB / 0.9775 GB, free: 47.43 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004301/2.361, allocations: 2.82 MB / 0.9803 GB, free: 47.21 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.361, allocations: 0 / 0.9803 GB, free: 47.21 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006921/2.368, allocations: 1.681 MB / 0.9819 GB, free: 47.2 MB / 490.7 MB 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 (241): * Single equations (assignments): 228 * 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%) 5,(6,72.2%) 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.01562/2.383, allocations: 12.77 MB / 0.9944 GB, free: 40.88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009034/2.392, allocations: 7.308 MB / 1.002 GB, free: 37.11 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/2.392, allocations: 3.875 kB / 1.002 GB, free: 37.11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006462/2.399, allocations: 5.274 MB / 1.007 GB, free: 34.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007514/2.406, allocations: 1.171 MB / 1.008 GB, free: 33.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04139/2.448, allocations: 17.55 MB / 1.025 GB, free: 26.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01212/2.46, allocations: 6.555 MB / 1.031 GB, free: 22.04 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006435/2.467, allocations: 1.179 MB / 1.033 GB, free: 21.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007344/2.474, allocations: 3.87 MB / 1.036 GB, free: 17.61 MB / 490.7 MB Notification: Performance of SimCode: time 1.573e-06/2.474, allocations: 4 kB / 1.036 GB, free: 17.61 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5484/3.022, allocations: 141.4 MB / 1.174 GB, free: 43.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/3.023, allocations: 225.6 kB / 1.175 GB, free: 43.21 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.382/9.404, allocations: 0 / 1.175 GB, free: 43.21 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase.fmu > Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat does not exist to compare? outputFormat=mat