Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001478, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.627/1.627, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008747/0.0008747, allocations: 82.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.666e-05, allocations: 4 kB / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08651, allocations: 47.58 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3653/0.4519, allocations: 114.2 MB / 477.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003653/0.4523, allocations: 90.05 kB / 477.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7605/1.213, allocations: 217.6 MB / 0.6787 GB, free: 5.121 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.213, allocations: 3.938 kB / 0.6787 GB, free: 5.117 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001069/1.214, allocations: 255.7 kB / 0.679 GB, free: 4.867 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: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.6091/1.823, allocations: 9.562 MB / 0.6883 GB, free: 21.1 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/1.823, allocations: 11.88 kB / 0.6883 GB, free: 21.1 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01655/1.84, allocations: 2.13 MB / 0.6904 GB, free: 20.5 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03164/1.871, allocations: 8.897 MB / 0.6991 GB, free: 19.59 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001449/1.873, allocations: 337.4 kB / 0.6994 GB, free: 19.59 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00588/1.879, allocations: 0.5872 MB / 0.7 GB, free: 19.58 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02809/1.907, allocations: 10.8 MB / 0.7106 GB, free: 19.54 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04481/1.952, allocations: 12.32 MB / 0.7226 GB, free: 18.45 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000703/1.953, allocations: 11.12 kB / 0.7226 GB, free: 18.45 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004664/1.957, allocations: 7.562 kB / 0.7226 GB, free: 18.45 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006385/1.958, allocations: 456.1 kB / 0.723 GB, free: 18.42 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1003/2.058, allocations: 42.15 MB / 0.7642 GB, free: 5.863 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02755/2.086, allocations: 24.27 MB / 0.7879 GB, free: 16.65 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009683/2.096, allocations: 4.715 MB / 0.7925 GB, free: 14.9 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03178/2.128, allocations: 11.74 MB / 0.804 GB, free: 9.312 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.993e-05/2.128, allocations: 81.45 kB / 0.804 GB, free: 9.238 MB / 442.8 MB Notification: Performance of pre-optimization done (n=419): time 1.159e-05/2.128, allocations: 1.875 kB / 0.804 GB, free: 9.238 MB / 442.8 MB Notification: Performance of matching and sorting (n=425): time 0.03395/2.162, allocations: 14 MB / 0.8177 GB, free: 2.816 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/2.162, allocations: 96.72 kB / 0.8178 GB, free: 2.75 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00968/2.171, allocations: 3.784 MB / 0.8215 GB, free: 1.297 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001061/2.173, allocations: 30.89 kB / 0.8215 GB, free: 1.266 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004144/2.177, allocations: 4.434 MB / 0.8259 GB, free: 13.49 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002317/2.179, allocations: 1.362 MB / 0.8272 GB, free: 12.23 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009525/2.18, allocations: 1.531 kB / 0.8272 GB, free: 12.23 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.000512/2.181, allocations: 498.6 kB / 0.8277 GB, free: 11.8 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004131/2.185, allocations: 2.168 MB / 0.8298 GB, free: 9.855 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005524/2.19, allocations: 3.283 MB / 0.833 GB, free: 6.43 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006016/2.196, allocations: 3.006 MB / 0.8359 GB, free: 3.984 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.768e-05/2.196, allocations: 11.89 kB / 0.8359 GB, free: 3.977 MB / 458.8 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02221/2.219, allocations: 7.993 MB / 0.8437 GB, free: 14.65 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.363e-05/2.219, allocations: 19.19 kB / 0.8438 GB, free: 14.64 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-05/2.219, allocations: 36 kB / 0.8438 GB, free: 14.6 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003652/2.223, allocations: 1.418 MB / 0.8452 GB, free: 13.43 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004636/2.227, allocations: 0.9862 MB / 0.8461 GB, free: 12.66 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3258/2.553, allocations: 25.65 MB / 0.8712 GB, free: 68.95 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004866/2.558, allocations: 132.6 kB / 0.8713 GB, free: 68.95 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008302/2.559, allocations: 191 kB / 0.8715 GB, free: 68.95 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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,68.8%) 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.0009357/2.56, allocations: 238 kB / 0.8717 GB, free: 68.84 MB / 474.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01296/2.573, allocations: 7.113 MB / 0.8787 GB, free: 68.16 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001556/2.574, allocations: 0.5213 MB / 0.8792 GB, free: 68.16 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/2.587, allocations: 7.519 MB / 0.8865 GB, free: 67.41 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-05/2.587, allocations: 43.2 kB / 0.8866 GB, free: 67.4 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.38e-05/2.587, allocations: 33.41 kB / 0.8866 GB, free: 67.4 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.361e-05/2.587, allocations: 21.89 kB / 0.8866 GB, free: 67.4 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02795/2.615, allocations: 14.9 MB / 0.9012 GB, free: 66.26 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/2.615, allocations: 11.64 kB / 0.9012 GB, free: 66.25 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002174/2.618, allocations: 453.6 kB / 0.9016 GB, free: 66.25 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004703/2.622, allocations: 2.17 MB / 0.9037 GB, free: 66.14 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006144/2.623, allocations: 42.23 kB / 0.9038 GB, free: 66.14 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02987/2.653, allocations: 33.28 MB / 0.9363 GB, free: 50.12 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/2.653, allocations: 3.906 kB / 0.9363 GB, free: 50.12 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/2.67, allocations: 11.28 MB / 0.9473 GB, free: 48.46 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004163/2.675, allocations: 1.116 MB / 0.9484 GB, free: 47.81 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001871/2.677, allocations: 21.28 kB / 0.9484 GB, free: 47.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003646/2.68, allocations: 191 kB / 0.9486 GB, free: 47.8 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/2.682, allocations: 439.2 kB / 0.949 GB, free: 47.73 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003221/2.682, allocations: 116 kB / 0.9491 GB, free: 47.71 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.00574/2.688, allocations: 2.826 MB / 0.9519 GB, free: 46.59 MB / 474.8 MB Notification: Performance of sort global known variables: time 6.42e-07/2.688, allocations: 2.969 kB / 0.9519 GB, free: 46.59 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0108/2.698, allocations: 1.681 MB / 0.9535 GB, free: 46.57 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.01949/2.718, allocations: 12.92 MB / 0.9661 GB, free: 40.08 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01181/2.73, allocations: 7.293 MB / 0.9733 GB, free: 36.31 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-05/2.73, allocations: 3.781 kB / 0.9733 GB, free: 36.31 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0094/2.739, allocations: 5.337 MB / 0.9785 GB, free: 33.32 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008514/2.748, allocations: 1.171 MB / 0.9796 GB, free: 33.06 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05028/2.798, allocations: 17.58 MB / 0.9968 GB, free: 24.5 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/2.809, allocations: 6.549 MB / 1.003 GB, free: 19.68 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.005184/2.814, allocations: 1.182 MB / 1.004 GB, free: 18.87 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006643/2.821, allocations: 3.87 MB / 1.008 GB, free: 15.25 MB / 474.8 MB Notification: Performance of SimCode: time 1.824e-06/2.821, allocations: 4 kB / 1.008 GB, free: 15.25 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5575/3.378, allocations: 141.3 MB / 1.146 GB, free: 38.28 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/3.379, allocations: 182.5 kB / 1.146 GB, free: 38.08 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.337/9.715, allocations: 11.91 kB / 1.146 GB, free: 38.07 MB / 474.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat