Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001471/0.001471, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 93.27 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.137e-05/2.138e-05, allocations: 0 / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3352, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.5206, allocations: 114 MB / 476.4 MB, free: 4.152 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/0.521, allocations: 87.89 kB / 476.5 MB, free: 4.066 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.352/1.873, allocations: 217.6 MB / 0.6778 GB, free: 41.76 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.943e-06/1.873, allocations: 0 / 0.6778 GB, free: 41.76 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.001107/1.874, allocations: 248.3 kB / 0.678 GB, free: 41.73 MB / 427.1 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.04354/1.918, allocations: 9.575 MB / 0.6874 GB, free: 38.64 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/1.918, allocations: 10.22 kB / 0.6874 GB, free: 38.64 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01796/1.936, allocations: 2.121 MB / 0.6895 GB, free: 38.04 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03608/1.972, allocations: 8.905 MB / 0.6982 GB, free: 36.8 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009956/1.973, allocations: 328.2 kB / 0.6985 GB, free: 36.8 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00558/1.978, allocations: 0.5901 MB / 0.6991 GB, free: 36.79 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03563/2.014, allocations: 10.8 MB / 0.7096 GB, free: 36.74 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04604/2.06, allocations: 12.31 MB / 0.7216 GB, free: 35.62 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005966/2.061, allocations: 15.94 kB / 0.7216 GB, free: 35.62 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003729/2.065, allocations: 10.81 kB / 0.7216 GB, free: 35.62 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005698/2.065, allocations: 459 kB / 0.7221 GB, free: 35.59 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1113/2.177, allocations: 42.16 MB / 0.7633 GB, free: 19.58 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03667/2.213, allocations: 24.27 MB / 0.787 GB, free: 14.33 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01235/2.226, allocations: 4.722 MB / 0.7916 GB, free: 12.54 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04112/2.267, allocations: 11.75 MB / 0.803 GB, free: 4.594 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001053/2.267, allocations: 77.86 kB / 0.8031 GB, free: 4.508 MB / 443.1 MB Notification: Performance of pre-optimization done (n=419): time 7.725e-06/2.267, allocations: 4 kB / 0.8031 GB, free: 4.504 MB / 443.1 MB Notification: Performance of matching and sorting (n=425): time 0.04748/2.315, allocations: 14.03 MB / 0.8168 GB, free: 8.312 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.314e-05/2.315, allocations: 94.75 kB / 0.8169 GB, free: 8.207 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01075/2.325, allocations: 3.794 MB / 0.8206 GB, free: 4.871 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001015/2.327, allocations: 25.7 kB / 0.8206 GB, free: 4.84 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004415/2.331, allocations: 4.14 MB / 0.8247 GB, free: 1.086 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.3692/2.7, allocations: 1.352 MB / 0.826 GB, free: 68.4 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005195/2.701, allocations: 0 / 0.826 GB, free: 68.4 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0003702/2.701, allocations: 0.4955 MB / 0.8265 GB, free: 68.08 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005608/2.707, allocations: 2.17 MB / 0.8286 GB, free: 68.06 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006817/2.714, allocations: 3.29 MB / 0.8318 GB, free: 66.8 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008983/2.723, allocations: 3.003 MB / 0.8348 GB, free: 66.76 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.479e-05/2.723, allocations: 7.344 kB / 0.8348 GB, free: 66.76 MB / 459.1 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02098/2.744, allocations: 7.237 MB / 0.8418 GB, free: 66.2 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.381e-05/2.744, allocations: 25.45 kB / 0.8419 GB, free: 66.2 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.292e-05/2.744, allocations: 34.64 kB / 0.8419 GB, free: 66.2 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005425/2.749, allocations: 1.419 MB / 0.8433 GB, free: 66.08 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008021/2.758, allocations: 0.9809 MB / 0.8442 GB, free: 66.08 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04529/2.803, allocations: 25.66 MB / 0.8693 GB, free: 49.21 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007528/2.81, allocations: 146.5 kB / 0.8694 GB, free: 49.21 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/2.812, allocations: 190.5 kB / 0.8696 GB, free: 49.21 MB / 459.1 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.001246/2.813, allocations: 236.5 kB / 0.8698 GB, free: 49.1 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02343/2.836, allocations: 7.123 MB / 0.8768 GB, free: 48.42 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002643/2.839, allocations: 0.5144 MB / 0.8773 GB, free: 48.42 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02337/2.863, allocations: 7.521 MB / 0.8846 GB, free: 47.66 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.588e-05/2.863, allocations: 39.69 kB / 0.8847 GB, free: 47.66 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.312e-05/2.863, allocations: 28.66 kB / 0.8847 GB, free: 47.66 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001153/2.863, allocations: 20.06 kB / 0.8847 GB, free: 47.66 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0426/2.906, allocations: 14.9 MB / 0.8993 GB, free: 46.52 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.015e-05/2.906, allocations: 3.719 kB / 0.8993 GB, free: 46.52 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004361/2.91, allocations: 453.3 kB / 0.8997 GB, free: 46.52 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008991/2.919, allocations: 2.171 MB / 0.9018 GB, free: 46.4 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009182/2.92, allocations: 35.94 kB / 0.9019 GB, free: 46.4 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04907/2.969, allocations: 33.28 MB / 0.9344 GB, free: 25.46 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/2.969, allocations: 6.422 kB / 0.9344 GB, free: 25.46 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02768/2.997, allocations: 11.27 MB / 0.9454 GB, free: 20.16 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004649/3.002, allocations: 1.126 MB / 0.9465 GB, free: 19.48 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002026/3.004, allocations: 17.97 kB / 0.9465 GB, free: 19.47 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005956/3.01, allocations: 190 kB / 0.9467 GB, free: 19.47 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002038/3.012, allocations: 440.4 kB / 0.9471 GB, free: 19.41 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005105/3.012, allocations: 115.5 kB / 0.9472 GB, free: 19.38 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.00669/3.019, allocations: 2.83 MB / 0.95 GB, free: 18.26 MB / 459.1 MB Notification: Performance of sort global known variables: time 7.81e-07/3.019, allocations: 0 / 0.95 GB, free: 18.26 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01018/3.029, allocations: 1.677 MB / 0.9516 GB, free: 18.24 MB / 459.1 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.03526/3.065, allocations: 12.91 MB / 0.9642 GB, free: 11.11 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.01588/3.081, allocations: 7.285 MB / 0.9713 GB, free: 4.387 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/3.081, allocations: 4 kB / 0.9713 GB, free: 4.383 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01282/3.093, allocations: 5.343 MB / 0.9766 GB, free: 15.52 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/3.104, allocations: 1.179 MB / 0.9777 GB, free: 14.63 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4063/3.51, allocations: 17.48 MB / 0.9948 GB, free: 71.56 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01383/3.524, allocations: 6.383 MB / 1.001 GB, free: 70.7 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00959/3.534, allocations: 3.909 MB / 1.005 GB, free: 70.7 MB / 475.1 MB Notification: Performance of SimCode: time 1.343e-06/3.534, allocations: 0 / 1.005 GB, free: 70.7 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.006/12.54, allocations: 0.871 GB / 1.876 GB, free: 81.36 MB / 0.4952 GB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat