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.0009431/0.0009431, allocations: 171.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.312/1.312, 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.0008048/0.0008047, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.176e-05, allocations: 8 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07775/0.07783, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3013/0.3791, allocations: 108.5 MB / 478.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.3794, allocations: 85.52 kB / 478.7 MB, free: 1.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3958/0.7753, allocations: 80.32 MB / 0.546 GB, free: 90.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.7754, allocations: 4 kB / 0.546 GB, free: 90.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003686/0.7757, allocations: 82.45 kB / 0.546 GB, free: 90.02 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.009647/0.7854, allocations: 3.209 MB / 0.5492 GB, free: 88.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.7854, allocations: 9.062 kB / 0.5492 GB, free: 88.81 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001249/0.7867, allocations: 448.7 kB / 0.5496 GB, free: 88.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004368/0.7911, allocations: 0.7331 MB / 0.5503 GB, free: 88.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008336/0.7994, allocations: 3.34 MB / 0.5536 GB, free: 88.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.7998, allocations: 247.1 kB / 0.5538 GB, free: 88.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007073/0.8005, allocations: 310.2 kB / 0.5541 GB, free: 88.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006692/0.8072, allocations: 4.091 MB / 0.5581 GB, free: 87.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.554e-05/0.8073, allocations: 10.42 kB / 0.5581 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003933/0.8077, allocations: 134 kB / 0.5582 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001124/0.8078, allocations: 140.1 kB / 0.5584 GB, free: 87.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005614/0.8135, allocations: 3.347 MB / 0.5617 GB, free: 87.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01935/0.8328, allocations: 13.54 MB / 0.5749 GB, free: 81.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004988/0.8379, allocations: 6.793 MB / 0.5815 GB, free: 75.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001792/0.8397, allocations: 1.354 MB / 0.5828 GB, free: 75.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005714/0.8455, allocations: 3.626 MB / 0.5864 GB, free: 73.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.8455, allocations: 51.31 kB / 0.5864 GB, free: 73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 3.447e-06/0.8455, allocations: 0 / 0.5864 GB, free: 73 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.008168/0.8537, allocations: 5.014 MB / 0.5913 GB, free: 70.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.8538, allocations: 71.03 kB / 0.5914 GB, free: 70.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.8559, allocations: 1.613 MB / 0.593 GB, free: 69.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.547e-05/0.856, allocations: 53.23 kB / 0.593 GB, free: 69.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006177/0.8566, allocations: 1.422 MB / 0.5944 GB, free: 68.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/0.8569, allocations: 496.7 kB / 0.5949 GB, free: 68.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.776e-05/0.857, allocations: 35.66 kB / 0.5949 GB, free: 68.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.8571, allocations: 369.7 kB / 0.5953 GB, free: 67.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009746/0.8581, allocations: 0.7088 MB / 0.596 GB, free: 67.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.8591, allocations: 1.176 MB / 0.5971 GB, free: 66.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.8603, allocations: 0.9344 MB / 0.598 GB, free: 66.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.8603, allocations: 6.344 kB / 0.598 GB, free: 66.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003844/0.8641, allocations: 2.564 MB / 0.6005 GB, free: 65.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.8642, allocations: 10.91 kB / 0.6005 GB, free: 65.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.8642, allocations: 15.06 kB / 0.6005 GB, free: 65.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.8654, allocations: 0.4943 MB / 0.601 GB, free: 65.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.8668, allocations: 387.2 kB / 0.6014 GB, free: 65.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006295/0.8731, allocations: 6.377 MB / 0.6076 GB, free: 60.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.8746, allocations: 83.09 kB / 0.6077 GB, free: 60.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.8748, allocations: 67.52 kB / 0.6078 GB, free: 60.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002587/0.8751, allocations: 198.5 kB / 0.608 GB, free: 60.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/0.8753, allocations: 194.3 kB / 0.6081 GB, free: 60.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/0.879, allocations: 2.41 MB / 0.6105 GB, free: 59.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.8791, allocations: 13.56 kB / 0.6105 GB, free: 59.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.8791, allocations: 11.78 kB / 0.6105 GB, free: 59.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.8791, allocations: 6.562 kB / 0.6105 GB, free: 59.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007852/0.887, allocations: 5.393 MB / 0.6158 GB, free: 56.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.887, allocations: 4 kB / 0.6158 GB, free: 56.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009418/0.888, allocations: 212.7 kB / 0.616 GB, free: 55.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.8891, allocations: 0.5 MB / 0.6165 GB, free: 55.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.115e-05/0.8892, allocations: 31.42 kB / 0.6165 GB, free: 55.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007807/0.897, allocations: 10.42 MB / 0.6267 GB, free: 45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.8971, allocations: 0 / 0.6267 GB, free: 45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004652/0.9018, allocations: 3.527 MB / 0.6301 GB, free: 41.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.903, allocations: 455.2 kB / 0.6306 GB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/0.9033, allocations: 28 kB / 0.6306 GB, free: 41.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000976/0.9043, allocations: 78.16 kB / 0.6307 GB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002609/0.9045, allocations: 101.1 kB / 0.6308 GB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/0.9046, allocations: 47.7 kB / 0.6308 GB, free: 41.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001743/0.9064, allocations: 1.234 MB / 0.632 GB, free: 39.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9064, allocations: 0 / 0.632 GB, free: 39.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002191/0.9086, allocations: 0.6205 MB / 0.6326 GB, free: 39.35 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005098/0.9137, allocations: 4.75 MB / 0.6373 GB, free: 34.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003339/0.9171, allocations: 2.285 MB / 0.6395 GB, free: 32.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.9171, allocations: 4.188 kB / 0.6395 GB, free: 32.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00204/0.9191, allocations: 1.664 MB / 0.6411 GB, free: 31.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/0.9218, allocations: 475.9 kB / 0.6416 GB, free: 30.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.9319, allocations: 5.674 MB / 0.6471 GB, free: 25.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001648/0.9336, allocations: 2.426 MB / 0.6495 GB, free: 23.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001513/0.9352, allocations: 415.8 kB / 0.6499 GB, free: 23.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/0.9365, allocations: 1.131 MB / 0.651 GB, free: 22.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/0.9365, allocations: 0 / 0.651 GB, free: 22.56 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2842/1.221, allocations: 54.48 MB / 0.7042 GB, free: 93.91 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/1.221, allocations: 200.2 kB / 0.7044 GB, free: 93.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.454/4.674, allocations: 0 / 0.7044 GB, free: 93.68 MB / 426.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