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.0024/0.0024, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.088/2.088, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00111/0.00111, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.489e-05/3.502e-05, allocations: 11.98 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09675, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4939/0.5907, allocations: 114.6 MB / 483.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000322/0.5911, allocations: 86.45 kB / 483.9 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.092/1.683, allocations: 220.4 MB / 0.6878 GB, free: 8.473 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.683, allocations: 4 kB / 0.6878 GB, free: 8.469 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001219/1.684, allocations: 243.8 kB / 0.688 GB, free: 8.23 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.6863/2.371, allocations: 9.571 MB / 0.6974 GB, free: 25.44 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/2.371, allocations: 8.5 kB / 0.6974 GB, free: 25.44 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006564/2.377, allocations: 1.376 MB / 0.6987 GB, free: 25.34 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01831/2.396, allocations: 2.125 MB / 0.7008 GB, free: 24.76 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03602/2.432, allocations: 8.913 MB / 0.7095 GB, free: 24.11 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001253/2.433, allocations: 0.7437 MB / 0.7102 GB, free: 24.08 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005039/2.438, allocations: 0.9883 MB / 0.7112 GB, free: 24.07 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05202/2.49, allocations: 13.8 MB / 0.7246 GB, free: 22.93 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006267/2.491, allocations: 10.81 kB / 0.7247 GB, free: 22.93 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004082/2.495, allocations: 432.5 kB / 0.7251 GB, free: 22.93 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005772/2.496, allocations: 453 kB / 0.7255 GB, free: 22.91 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03761/2.533, allocations: 11.44 MB / 0.7367 GB, free: 22.81 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1491/2.682, allocations: 44.14 MB / 0.7798 GB, free: 7.02 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0593/2.742, allocations: 24.52 MB / 0.8037 GB, free: 1.723 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01935/2.761, allocations: 4.908 MB / 0.8085 GB, free: 15.91 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04314/2.804, allocations: 12.08 MB / 0.8203 GB, free: 10.11 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001153/2.805, allocations: 78.8 kB / 0.8204 GB, free: 10.04 MB / 458.8 MB Notification: Performance of pre-optimization done (n=419): time 8.065e-06/2.805, allocations: 0 / 0.8204 GB, free: 10.04 MB / 458.8 MB Notification: Performance of matching and sorting (n=425): time 0.04269/2.847, allocations: 13.85 MB / 0.8339 GB, free: 3.414 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/2.847, allocations: 99.25 kB / 0.834 GB, free: 3.344 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01361/2.861, allocations: 4.678 MB / 0.8386 GB, free: 1.633 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001091/2.862, allocations: 101.4 kB / 0.8387 GB, free: 1.547 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005092/2.867, allocations: 4.089 MB / 0.8427 GB, free: 14.25 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002907/2.87, allocations: 1.415 MB / 0.8441 GB, free: 12.98 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001058/2.871, allocations: 96 kB / 0.8441 GB, free: 12.89 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0006272/2.872, allocations: 0.4944 MB / 0.8446 GB, free: 12.44 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007453/2.88, allocations: 2.261 MB / 0.8468 GB, free: 10.4 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009177/2.889, allocations: 3.408 MB / 0.8502 GB, free: 6.844 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008904/2.898, allocations: 2.81 MB / 0.8529 GB, free: 4.504 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.321e-05/2.898, allocations: 12 kB / 0.8529 GB, free: 4.492 MB / 474.8 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02906/2.927, allocations: 7.603 MB / 0.8603 GB, free: 14.6 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.628e-05/2.927, allocations: 20 kB / 0.8604 GB, free: 14.58 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.762e-05/2.927, allocations: 36 kB / 0.8604 GB, free: 14.55 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00662/2.934, allocations: 1.475 MB / 0.8618 GB, free: 13.33 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008655/2.942, allocations: 0.9854 MB / 0.8628 GB, free: 12.55 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4238/3.366, allocations: 26.71 MB / 0.8889 GB, free: 74.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007361/3.374, allocations: 236.6 kB / 0.8891 GB, free: 74.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/3.375, allocations: 189.9 kB / 0.8893 GB, free: 74.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.001909/3.377, allocations: 405.4 kB / 0.8897 GB, free: 74.09 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002091/3.379, allocations: 0.5764 MB / 0.8902 GB, free: 74.09 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02506/3.404, allocations: 7.671 MB / 0.8977 GB, free: 73.33 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.463e-05/3.405, allocations: 39.22 kB / 0.8978 GB, free: 73.33 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001092/3.405, allocations: 28.56 kB / 0.8978 GB, free: 73.33 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001275/3.405, allocations: 22.94 kB / 0.8978 GB, free: 73.33 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05539/3.46, allocations: 16.36 MB / 0.9138 GB, free: 72.1 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.384e-05/3.46, allocations: 2.906 kB / 0.9138 GB, free: 72.1 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006201/3.467, allocations: 450 kB / 0.9142 GB, free: 72.1 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01335/3.48, allocations: 2.252 MB / 0.9164 GB, free: 71.98 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001301/3.481, allocations: 99.16 kB / 0.9165 GB, free: 71.98 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05683/3.538, allocations: 34.48 MB / 0.9502 GB, free: 55.14 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/3.538, allocations: 6.375 kB / 0.9502 GB, free: 55.14 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0329/3.571, allocations: 11.45 MB / 0.9614 GB, free: 53.46 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005555/3.577, allocations: 1.197 MB / 0.9625 GB, free: 52.92 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002905/3.58, allocations: 85.36 kB / 0.9626 GB, free: 52.86 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006905/3.587, allocations: 259.2 kB / 0.9629 GB, free: 52.8 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002239/3.589, allocations: 444.7 kB / 0.9633 GB, free: 52.73 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009471/3.59, allocations: 114.5 kB / 0.9634 GB, free: 52.71 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0105/3.601, allocations: 3.577 MB / 0.9669 GB, free: 51.37 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.515e-06/3.601, allocations: 3.438 kB / 0.9669 GB, free: 51.37 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01168/3.612, allocations: 1.904 MB / 0.9688 GB, free: 51.2 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.03315/3.645, allocations: 13.23 MB / 0.9817 GB, free: 44.5 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01804/3.664, allocations: 7.643 MB / 0.9891 GB, free: 40.58 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/3.664, allocations: 2.938 kB / 0.9891 GB, free: 40.58 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01382/3.677, allocations: 5.571 MB / 0.9946 GB, free: 37.43 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01266/3.69, allocations: 1.602 MB / 0.9962 GB, free: 37.05 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05876/3.749, allocations: 17.88 MB / 1.014 GB, free: 30.18 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01414/3.763, allocations: 6.387 MB / 1.02 GB, free: 25.58 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009805/3.773, allocations: 3.931 MB / 1.024 GB, free: 21.91 MB / 490.8 MB Notification: Performance of SimCode: time 2.274e-06/3.773, allocations: 0 / 1.024 GB, free: 21.91 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.526/13.3, allocations: 0.8787 GB / 1.902 GB, free: 49.21 MB / 0.5105 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