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.0009238/0.000924, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.245/1.245, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008006/0.0008006, allocations: 90.64 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.386e-05/2.395e-05, allocations: 0 / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08227/0.08232, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3155/0.3978, allocations: 114.6 MB / 484.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.3982, allocations: 89.81 kB / 484.8 MB, free: 11.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.64/1.038, allocations: 220.4 MB / 0.6887 GB, free: 8.172 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/1.038, allocations: 0 / 0.6887 GB, free: 8.172 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007709/1.039, allocations: 255.7 kB / 0.6889 GB, free: 7.922 MB / 426.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.4729/1.512, allocations: 9.573 MB / 0.6983 GB, free: 25.05 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/1.512, allocations: 9.75 kB / 0.6983 GB, free: 25.05 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004628/1.517, allocations: 1.368 MB / 0.6996 GB, free: 24.95 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01235/1.529, allocations: 2.124 MB / 0.7017 GB, free: 24.37 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02082/1.55, allocations: 8.908 MB / 0.7104 GB, free: 23.71 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007177/1.551, allocations: 0.7419 MB / 0.7111 GB, free: 23.69 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003123/1.554, allocations: 0.9913 MB / 0.7121 GB, free: 23.68 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02378/1.577, allocations: 13.79 MB / 0.7256 GB, free: 22.54 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001688/1.578, allocations: 17.06 kB / 0.7256 GB, free: 22.54 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009525/1.579, allocations: 429.1 kB / 0.726 GB, free: 22.54 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003054/1.579, allocations: 458.7 kB / 0.7264 GB, free: 22.52 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/1.599, allocations: 11.43 MB / 0.7376 GB, free: 22.42 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07482/1.674, allocations: 44.14 MB / 0.7807 GB, free: 6.785 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02285/1.697, allocations: 24.52 MB / 0.8046 GB, free: 1.492 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008217/1.705, allocations: 4.968 MB / 0.8095 GB, free: 15.89 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02304/1.728, allocations: 12.08 MB / 0.8213 GB, free: 10.09 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.927e-05/1.728, allocations: 86.98 kB / 0.8214 GB, free: 10.02 MB / 458.8 MB Notification: Performance of pre-optimization done (n=419): time 5.961e-06/1.728, allocations: 0 / 0.8214 GB, free: 10.02 MB / 458.8 MB Notification: Performance of matching and sorting (n=425): time 0.02539/1.754, allocations: 13.84 MB / 0.8349 GB, free: 3.395 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/1.754, allocations: 97.16 kB / 0.835 GB, free: 3.328 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.011/1.765, allocations: 4.683 MB / 0.8395 GB, free: 1.613 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009153/1.766, allocations: 101.7 kB / 0.8396 GB, free: 1.527 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003443/1.769, allocations: 4.437 MB / 0.844 GB, free: 14.02 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001689/1.771, allocations: 1.417 MB / 0.8454 GB, free: 12.74 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002862/1.771, allocations: 99.47 kB / 0.8455 GB, free: 12.65 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0002549/1.772, allocations: 499.7 kB / 0.8459 GB, free: 12.21 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003293/1.775, allocations: 2.255 MB / 0.8481 GB, free: 10.18 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003904/1.779, allocations: 3.409 MB / 0.8515 GB, free: 6.613 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003755/1.783, allocations: 2.816 MB / 0.8542 GB, free: 4.273 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.169e-05/1.783, allocations: 10.03 kB / 0.8542 GB, free: 4.266 MB / 474.8 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.01685/1.8, allocations: 8.22 MB / 0.8623 GB, free: 14.6 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.647e-05/1.8, allocations: 20 kB / 0.8623 GB, free: 14.58 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.139e-05/1.8, allocations: 38.97 kB / 0.8623 GB, free: 14.55 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003376/1.803, allocations: 1.479 MB / 0.8638 GB, free: 13.33 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004193/1.807, allocations: 0.9779 MB / 0.8647 GB, free: 12.55 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2743/2.082, allocations: 26.71 MB / 0.8908 GB, free: 75.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004513/2.086, allocations: 239.4 kB / 0.891 GB, free: 75.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004266/2.087, allocations: 195.8 kB / 0.8912 GB, free: 75.2 MB / 490.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.0008281/2.087, allocations: 393.8 kB / 0.8916 GB, free: 75.09 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008449/2.088, allocations: 0.578 MB / 0.8921 GB, free: 75.09 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/2.1, allocations: 7.673 MB / 0.8996 GB, free: 74.33 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.345e-05/2.1, allocations: 41.06 kB / 0.8997 GB, free: 74.33 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-05/2.1, allocations: 27.25 kB / 0.8997 GB, free: 74.33 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-05/2.1, allocations: 26.69 kB / 0.8997 GB, free: 74.32 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02458/2.124, allocations: 16.35 MB / 0.9157 GB, free: 73.09 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/2.124, allocations: 3.625 kB / 0.9157 GB, free: 73.09 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00185/2.126, allocations: 451.3 kB / 0.9161 GB, free: 73.09 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00441/2.131, allocations: 2.255 MB / 0.9183 GB, free: 72.98 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/2.131, allocations: 99.86 kB / 0.9184 GB, free: 72.98 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02798/2.159, allocations: 34.47 MB / 0.9521 GB, free: 56.14 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/2.159, allocations: 12 kB / 0.9521 GB, free: 56.14 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01437/2.173, allocations: 11.44 MB / 0.9633 GB, free: 54.56 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003095/2.177, allocations: 1.2 MB / 0.9644 GB, free: 54.17 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009718/2.178, allocations: 89.69 kB / 0.9645 GB, free: 54.11 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00252/2.18, allocations: 265.4 kB / 0.9648 GB, free: 54.06 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000963/2.181, allocations: 433 kB / 0.9652 GB, free: 53.99 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/2.181, allocations: 123.5 kB / 0.9653 GB, free: 53.96 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00512/2.186, allocations: 3.574 MB / 0.9688 GB, free: 52.62 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.11e-07/2.186, allocations: 0 / 0.9688 GB, free: 52.62 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007008/2.193, allocations: 1.902 MB / 0.9707 GB, free: 52.45 MB / 490.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.01608/2.21, allocations: 13.23 MB / 0.9836 GB, free: 45.75 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01021/2.22, allocations: 7.638 MB / 0.991 GB, free: 41.83 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.22, allocations: 3.094 kB / 0.9911 GB, free: 41.83 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007499/2.227, allocations: 5.586 MB / 0.9965 GB, free: 38.68 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008221/2.236, allocations: 1.592 MB / 0.9981 GB, free: 38.3 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04111/2.277, allocations: 18.12 MB / 1.016 GB, free: 31.3 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006038/2.283, allocations: 6.547 MB / 1.022 GB, free: 27.04 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.004477/2.287, allocations: 1.27 MB / 1.023 GB, free: 26.16 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004386/2.292, allocations: 3.901 MB / 1.027 GB, free: 22.52 MB / 490.8 MB Notification: Performance of SimCode: time 2.385e-06/2.292, allocations: 0 / 1.027 GB, free: 22.52 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.437/2.729, allocations: 166 MB / 1.189 GB, free: 37.93 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/2.729, allocations: 217.2 kB / 1.19 GB, free: 37.69 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.635/9.364, allocations: 0 / 1.19 GB, free: 37.69 MB / 490.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