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.001109/0.001109, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.366/1.366, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0008593/0.0008592, allocations: 88.69 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.065e-05/3.075e-05, allocations: 4 kB / 344 MB, free: 4.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1058, allocations: 50.41 MB / 394.4 MB, free: 1.723 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3847/0.4905, allocations: 117.9 MB / 0.5003 GB, free: 1.473 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/0.4909, allocations: 99.94 kB / 0.5003 GB, free: 1.375 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7488/1.24, allocations: 221.7 MB / 0.7168 GB, free: 384 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.24, allocations: 0 / 0.7168 GB, free: 384 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001178/1.241, allocations: 251.7 kB / 0.7171 GB, free: 132 kB / 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.5981/1.839, allocations: 9.613 MB / 0.7265 GB, free: 26.96 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.349e-05/1.839, allocations: 12.55 kB / 0.7265 GB, free: 26.96 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008032/1.847, allocations: 1.371 MB / 0.7278 GB, free: 26.86 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01517/1.862, allocations: 2.127 MB / 0.7299 GB, free: 26.26 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02907/1.892, allocations: 8.898 MB / 0.7386 GB, free: 25.06 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001143/1.893, allocations: 0.745 MB / 0.7393 GB, free: 25.04 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004738/1.897, allocations: 0.9859 MB / 0.7403 GB, free: 25.03 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03804/1.936, allocations: 13.77 MB / 0.7537 GB, free: 23.89 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004796/1.936, allocations: 17.34 kB / 0.7537 GB, free: 23.89 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003438/1.939, allocations: 434 kB / 0.7542 GB, free: 23.89 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004204/1.94, allocations: 457.2 kB / 0.7546 GB, free: 23.87 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02796/1.968, allocations: 11.43 MB / 0.7658 GB, free: 23.77 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08658/2.055, allocations: 44.1 MB / 0.8088 GB, free: 8.223 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02348/2.078, allocations: 24.54 MB / 0.8328 GB, free: 2.93 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008539/2.087, allocations: 4.919 MB / 0.8376 GB, free: 1.125 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02784/2.115, allocations: 12.22 MB / 0.8495 GB, free: 11.68 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.142e-05/2.115, allocations: 83.92 kB / 0.8496 GB, free: 11.61 MB / 474.8 MB Notification: Performance of pre-optimization done (n=421): time 5.22e-06/2.115, allocations: 2.75 kB / 0.8496 GB, free: 11.61 MB / 474.8 MB Notification: Performance of matching and sorting (n=427): time 0.02851/2.143, allocations: 13.87 MB / 0.8632 GB, free: 4.973 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/2.143, allocations: 97.33 kB / 0.8632 GB, free: 4.906 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008711/2.152, allocations: 4.667 MB / 0.8678 GB, free: 2.02 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008532/2.153, allocations: 103.8 kB / 0.8679 GB, free: 1.918 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003436/2.156, allocations: 4.43 MB / 0.8722 GB, free: 13.97 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001783/2.158, allocations: 1.42 MB / 0.8736 GB, free: 12.7 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003677/2.158, allocations: 96 kB / 0.8737 GB, free: 12.6 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003351/2.159, allocations: 498 kB / 0.8742 GB, free: 12.16 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003462/2.162, allocations: 2.267 MB / 0.8764 GB, free: 10.12 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004437/2.167, allocations: 3.404 MB / 0.8797 GB, free: 6.562 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004612/2.171, allocations: 2.816 MB / 0.8825 GB, free: 4.219 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.221e-05/2.171, allocations: 12 kB / 0.8825 GB, free: 4.207 MB / 490.8 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.0218/2.193, allocations: 8.255 MB / 0.8905 GB, free: 14.58 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 6.182e-05/2.193, allocations: 20 kB / 0.8906 GB, free: 14.56 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.884e-05/2.193, allocations: 32 kB / 0.8906 GB, free: 14.53 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003887/2.197, allocations: 1.483 MB / 0.892 GB, free: 13.29 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004824/2.202, allocations: 0.9709 MB / 0.893 GB, free: 12.52 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3883/2.591, allocations: 26.69 MB / 0.9191 GB, free: 74.84 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005469/2.596, allocations: 239.6 kB / 0.9193 GB, free: 74.84 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001256/2.597, allocations: 184.5 kB / 0.9195 GB, free: 74.84 MB / 0.4949 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 (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.001177/2.599, allocations: 403.4 kB / 0.9198 GB, free: 74.73 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/2.601, allocations: 0.5718 MB / 0.9204 GB, free: 74.73 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/2.616, allocations: 7.693 MB / 0.9279 GB, free: 73.97 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.134e-05/2.616, allocations: 42.61 kB / 0.928 GB, free: 73.97 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.878e-05/2.616, allocations: 29.25 kB / 0.928 GB, free: 73.97 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.649e-05/2.616, allocations: 21.62 kB / 0.928 GB, free: 73.97 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03969/2.656, allocations: 16.35 MB / 0.944 GB, free: 72.75 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/2.656, allocations: 6.688 kB / 0.944 GB, free: 72.75 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00231/2.658, allocations: 454.3 kB / 0.9444 GB, free: 72.75 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005183/2.663, allocations: 2.242 MB / 0.9466 GB, free: 72.64 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007754/2.664, allocations: 96.08 kB / 0.9467 GB, free: 72.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03041/2.695, allocations: 34.5 MB / 0.9804 GB, free: 55.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/2.695, allocations: 3.75 kB / 0.9804 GB, free: 55.8 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/2.713, allocations: 11.38 MB / 0.9915 GB, free: 54.33 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004488/2.718, allocations: 1.196 MB / 0.9927 GB, free: 54.11 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002552/2.72, allocations: 88.03 kB / 0.9927 GB, free: 54.11 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00523/2.725, allocations: 261.4 kB / 0.993 GB, free: 54.09 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002373/2.728, allocations: 431.4 kB / 0.9934 GB, free: 54.02 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006956/2.729, allocations: 116.9 kB / 0.9935 GB, free: 54 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006343/2.735, allocations: 3.573 MB / 0.997 GB, free: 52.66 MB / 0.4949 GB Notification: Performance of sort global known variables: time 4.91e-07/2.735, allocations: 0 / 0.997 GB, free: 52.66 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01023/2.745, allocations: 1.911 MB / 0.9989 GB, free: 52.48 MB / 0.4949 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 (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.01891/2.764, allocations: 13.08 MB / 1.012 GB, free: 45.97 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01178/2.776, allocations: 7.659 MB / 1.019 GB, free: 42.04 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/2.776, allocations: 6.25 kB / 1.019 GB, free: 42.04 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.009256/2.785, allocations: 5.515 MB / 1.025 GB, free: 38.9 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009319/2.795, allocations: 1.601 MB / 1.026 GB, free: 38.53 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04749/2.842, allocations: 18.06 MB / 1.044 GB, free: 31.6 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007421/2.85, allocations: 6.556 MB / 1.05 GB, free: 27.77 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.005633/2.855, allocations: 1.266 MB / 1.051 GB, free: 26.89 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007323/2.863, allocations: 3.908 MB / 1.055 GB, free: 23.25 MB / 0.4949 GB Notification: Performance of SimCode: time 1.192e-06/2.863, allocations: 0 / 1.055 GB, free: 23.25 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5991/3.462, allocations: 166.4 MB / 1.218 GB, free: 42.08 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/3.462, allocations: 246.9 kB / 1.218 GB, free: 41.75 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.863/11.33, allocations: 3.953 kB / 1.218 GB, free: 41.74 MB / 0.4949 GB (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