Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",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.001036/0.001036, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.199/1.199, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008037/0.0008037, allocations: 92.11 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002489/0.0002491, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2015, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.3165, allocations: 108.6 MB / 484.6 MB, free: 3.965 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.3168, allocations: 91.89 kB / 484.6 MB, free: 3.875 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3452/0.662, allocations: 80.3 MB / 0.5517 GB, free: 64.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6621, allocations: 192 / 0.5517 GB, free: 64.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002752/0.6623, allocations: 75.94 kB / 0.5518 GB, free: 64.85 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01081/0.6732, allocations: 3.537 MB / 0.5552 GB, free: 61.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.6732, allocations: 16.03 kB / 0.5552 GB, free: 61.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00168/0.6749, allocations: 450.9 kB / 0.5557 GB, free: 60.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004548/0.6795, allocations: 0.7296 MB / 0.5564 GB, free: 60.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008426/0.6879, allocations: 3.379 MB / 0.5597 GB, free: 56.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/0.6882, allocations: 234.2 kB / 0.5599 GB, free: 56.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/0.6893, allocations: 319.9 kB / 0.5602 GB, free: 56.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009503/0.6989, allocations: 4.172 MB / 0.5643 GB, free: 51.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/0.699, allocations: 3.906 kB / 0.5643 GB, free: 51.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006723/0.6997, allocations: 132 kB / 0.5644 GB, free: 51.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/0.6998, allocations: 146.2 kB / 0.5646 GB, free: 51.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006296/0.7061, allocations: 3.46 MB / 0.5679 GB, free: 48.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02044/0.7266, allocations: 13.55 MB / 0.5812 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00493/0.7316, allocations: 6.874 MB / 0.5879 GB, free: 26.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005632/0.7372, allocations: 3.265 MB / 0.5911 GB, free: 22.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.7373, allocations: 51.81 kB / 0.5911 GB, free: 22.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=130): time 3.026e-06/0.7373, allocations: 0 / 0.5911 GB, free: 22.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.01212/0.7494, allocations: 6.792 MB / 0.5978 GB, free: 15.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.7495, allocations: 64.72 kB / 0.5978 GB, free: 15.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002947/0.7525, allocations: 1.627 MB / 0.5994 GB, free: 14.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.7526, allocations: 53.7 kB / 0.5995 GB, free: 14.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007644/0.7534, allocations: 1.416 MB / 0.6008 GB, free: 12.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/0.7538, allocations: 0.5083 MB / 0.6013 GB, free: 12.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.7539, allocations: 36 kB / 0.6014 GB, free: 12.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.754, allocations: 369.9 kB / 0.6017 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.7551, allocations: 0.7769 MB / 0.6025 GB, free: 11.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.7564, allocations: 1.226 MB / 0.6037 GB, free: 9.645 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/0.7578, allocations: 0.998 MB / 0.6047 GB, free: 8.645 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.7578, allocations: 4 kB / 0.6047 GB, free: 8.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003995/0.7618, allocations: 2.702 MB / 0.6073 GB, free: 5.922 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.7618, allocations: 12 kB / 0.6073 GB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.7619, allocations: 12 kB / 0.6073 GB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.7631, allocations: 0.5017 MB / 0.6078 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.7645, allocations: 403.4 kB / 0.6082 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006937/0.7715, allocations: 6.56 MB / 0.6146 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.7733, allocations: 80.11 kB / 0.6147 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002431/0.7735, allocations: 75.98 kB / 0.6147 GB, free: 14.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * 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): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002214/0.7757, allocations: 1.052 MB / 0.6158 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005217/0.7763, allocations: 189.7 kB / 0.616 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004769/0.7811, allocations: 2.57 MB / 0.6185 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.7811, allocations: 12 kB / 0.6185 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.142e-05/0.7811, allocations: 15.98 kB / 0.6185 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.7811, allocations: 3.984 kB / 0.6185 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/0.7919, allocations: 5.657 MB / 0.624 GB, free: 4.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.7919, allocations: 4 kB / 0.624 GB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.793, allocations: 239.8 kB / 0.6243 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.7943, allocations: 499.8 kB / 0.6247 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.7945, allocations: 36 kB / 0.6248 GB, free: 3.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/0.8047, allocations: 10.6 MB / 0.6351 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.8048, allocations: 7.969 kB / 0.6351 GB, free: 8.258 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006124/0.8109, allocations: 3.748 MB / 0.6388 GB, free: 4.387 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.8122, allocations: 462.6 kB / 0.6392 GB, free: 3.914 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004803/0.8127, allocations: 28 kB / 0.6392 GB, free: 3.887 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.8139, allocations: 79.94 kB / 0.6393 GB, free: 3.809 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/0.8142, allocations: 117 kB / 0.6394 GB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.8143, allocations: 43.98 kB / 0.6395 GB, free: 3.652 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002533/0.8169, allocations: 1.254 MB / 0.6407 GB, free: 2.406 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.8169, allocations: 0 / 0.6407 GB, free: 2.406 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002963/0.8198, allocations: 0.629 MB / 0.6413 GB, free: 1.777 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1957/1.016, allocations: 4.942 MB / 0.6461 GB, free: 90.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004368/1.02, allocations: 2.441 MB / 0.6485 GB, free: 90.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/1.02, allocations: 0 / 0.6485 GB, free: 90.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002639/1.023, allocations: 1.753 MB / 0.6502 GB, free: 90.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/1.025, allocations: 487.2 kB / 0.6507 GB, free: 90.08 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03507/1.06, allocations: 26.23 MB / 0.6763 GB, free: 75.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003471/1.064, allocations: 2.432 MB / 0.6787 GB, free: 74.41 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002004/1.066, allocations: 414.8 kB / 0.6791 GB, free: 74.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001663/1.068, allocations: 1.125 MB / 0.6802 GB, free: 74.35 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/1.068, allocations: 0 / 0.6802 GB, free: 74.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08623/1.154, allocations: 54.44 MB / 0.7333 GB, free: 45.27 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/1.154, allocations: 226 kB / 0.7336 GB, free: 45.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.419/4.574, allocations: 4.062 kB / 0.7336 GB, free: 45.03 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat does not exist to compare? outputFormat=mat