Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",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.0009805/0.0009806, allocations: 172.6 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.323/1.323, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008275/0.0008276, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.071e-05, allocations: 3.984 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08267/0.08273, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.303/0.3858, allocations: 110.3 MB / 480.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.386, allocations: 86.2 kB / 480.5 MB, free: 15.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3802/0.7663, allocations: 88.23 MB / 0.5554 GB, free: 90.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.7663, allocations: 0 / 0.5554 GB, free: 90.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001766/0.7665, allocations: 96.52 kB / 0.5555 GB, free: 90.1 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.006234/0.7727, allocations: 3.683 MB / 0.5591 GB, free: 88.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.7728, allocations: 11.31 kB / 0.5591 GB, free: 88.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005221/0.7733, allocations: 0.5027 MB / 0.5596 GB, free: 88.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002995/0.7763, allocations: 0.7922 MB / 0.5604 GB, free: 88.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005669/0.782, allocations: 3.663 MB / 0.564 GB, free: 87.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.7821, allocations: 270.4 kB / 0.5642 GB, free: 87.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004406/0.7826, allocations: 358.8 kB / 0.5646 GB, free: 87.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00619/0.7888, allocations: 4.858 MB / 0.5693 GB, free: 87.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.611e-05/0.7889, allocations: 2.625 kB / 0.5693 GB, free: 87.35 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003078/0.7892, allocations: 151.2 kB / 0.5695 GB, free: 87.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.7893, allocations: 158 kB / 0.5696 GB, free: 87.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005268/0.7946, allocations: 4.013 MB / 0.5735 GB, free: 85.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0184/0.813, allocations: 15.98 MB / 0.5891 GB, free: 76.99 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005234/0.8183, allocations: 7.688 MB / 0.5967 GB, free: 70.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/0.8203, allocations: 1.662 MB / 0.5983 GB, free: 69.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005969/0.8262, allocations: 4.629 MB / 0.6028 GB, free: 67.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.8263, allocations: 54.06 kB / 0.6028 GB, free: 67.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 3.487e-06/0.8263, allocations: 0 / 0.6028 GB, free: 67.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.007184/0.8335, allocations: 5.464 MB / 0.6082 GB, free: 64.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.8335, allocations: 74.97 kB / 0.6083 GB, free: 64.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00226/0.8358, allocations: 1.878 MB / 0.6101 GB, free: 63.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.878e-05/0.8359, allocations: 56.64 kB / 0.6101 GB, free: 63.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007377/0.8366, allocations: 1.621 MB / 0.6117 GB, free: 62.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002736/0.8369, allocations: 0.5388 MB / 0.6122 GB, free: 61.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.727e-05/0.837, allocations: 35.25 kB / 0.6123 GB, free: 61.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.8371, allocations: 380.1 kB / 0.6126 GB, free: 61.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.8382, allocations: 0.8703 MB / 0.6135 GB, free: 61.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/0.8394, allocations: 1.343 MB / 0.6148 GB, free: 59.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.8406, allocations: 1.101 MB / 0.6159 GB, free: 59.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.8407, allocations: 7.75 kB / 0.6159 GB, free: 59.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.00388/0.8445, allocations: 3.164 MB / 0.619 GB, free: 56.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.8446, allocations: 16.03 kB / 0.619 GB, free: 56.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.8446, allocations: 12 kB / 0.619 GB, free: 56.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.846, allocations: 0.7319 MB / 0.6197 GB, free: 55.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.8472, allocations: 365.8 kB / 0.6201 GB, free: 55.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008063/0.8553, allocations: 10.37 MB / 0.6302 GB, free: 45.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.8569, allocations: 94.2 kB / 0.6303 GB, free: 45.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.857, allocations: 71.94 kB / 0.6304 GB, free: 45.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002868/0.8573, allocations: 220.5 kB / 0.6306 GB, free: 44.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003244/0.8576, allocations: 229.2 kB / 0.6308 GB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004354/0.862, allocations: 3.043 MB / 0.6338 GB, free: 42.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.862, allocations: 16 kB / 0.6338 GB, free: 42.01 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.862, allocations: 12 kB / 0.6338 GB, free: 42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.8621, allocations: 9.891 kB / 0.6338 GB, free: 42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008696/0.8708, allocations: 6.404 MB / 0.64 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.8708, allocations: 0 / 0.64 GB, free: 36.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007204/0.8715, allocations: 172.2 kB / 0.6402 GB, free: 36.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/0.8733, allocations: 0.8989 MB / 0.6411 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.8735, allocations: 39.38 kB / 0.6411 GB, free: 35.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01119/0.8847, allocations: 14.76 MB / 0.6555 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.8847, allocations: 0 / 0.6555 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005331/0.89, allocations: 4.441 MB / 0.6599 GB, free: 16.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00099/0.891, allocations: 0.5177 MB / 0.6604 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.8913, allocations: 36 kB / 0.6604 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009516/0.8922, allocations: 87.92 kB / 0.6605 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/0.8926, allocations: 165 kB / 0.6607 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.062e-05/0.8927, allocations: 43.98 kB / 0.6607 GB, free: 15.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001764/0.8945, allocations: 1.435 MB / 0.6621 GB, free: 14.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8945, allocations: 0 / 0.6621 GB, free: 14.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002139/0.8966, allocations: 0.7344 MB / 0.6628 GB, free: 13.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005834/0.9025, allocations: 5.66 MB / 0.6683 GB, free: 7.539 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003554/0.906, allocations: 2.954 MB / 0.6712 GB, free: 4.523 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.906, allocations: 0 / 0.6712 GB, free: 4.523 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002474/0.9085, allocations: 2.195 MB / 0.6734 GB, free: 2.254 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.9108, allocations: 0.6001 MB / 0.674 GB, free: 1.688 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.9209, allocations: 6.535 MB / 0.6803 GB, free: 11.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.9232, allocations: 2.747 MB / 0.683 GB, free: 8.352 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001494/0.9248, allocations: 465.2 kB / 0.6835 GB, free: 7.914 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001581/0.9263, allocations: 1.312 MB / 0.6848 GB, free: 6.602 MB / 426.7 MB Notification: Performance of SimCode: time 6.61e-07/0.9263, allocations: 0 / 0.6848 GB, free: 6.602 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2795/1.206, allocations: 64.87 MB / 0.7481 GB, free: 84.96 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/1.206, allocations: 194.5 kB / 0.7483 GB, free: 84.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.428/4.634, allocations: 0 / 0.7483 GB, free: 84.74 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat