Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.0015/0.0015, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001091/0.00109, allocations: 93.09 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.478e-05/2.491e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.341, allocations: 47.57 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1929/0.5339, allocations: 109.7 MB / 472.1 MB, free: 8.551 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003496/0.5343, allocations: 83.95 kB / 472.2 MB, free: 8.469 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6342/1.169, allocations: 87.13 MB / 0.5462 GB, free: 89.72 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.154e-06/1.169, allocations: 0 / 0.5462 GB, free: 89.72 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004413/1.169, allocations: 85.88 kB / 0.5463 GB, free: 89.71 MB / 395.1 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.01595/1.185, allocations: 3.692 MB / 0.5499 GB, free: 87.34 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/1.185, allocations: 10.5 kB / 0.5499 GB, free: 87.34 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006664/1.192, allocations: 0.7879 MB / 0.5507 GB, free: 86.95 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/1.205, allocations: 3.661 MB / 0.5543 GB, free: 84.55 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/1.206, allocations: 120.3 kB / 0.5544 GB, free: 84.55 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001503/1.207, allocations: 217.3 kB / 0.5546 GB, free: 84.54 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0126/1.22, allocations: 3.796 MB / 0.5583 GB, free: 82.59 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01643/1.236, allocations: 4.313 MB / 0.5625 GB, free: 78.41 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000193/1.237, allocations: 11.91 kB / 0.5625 GB, free: 78.4 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001294/1.238, allocations: 3.984 kB / 0.5625 GB, free: 78.4 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002076/1.238, allocations: 163.1 kB / 0.5627 GB, free: 78.24 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04152/1.28, allocations: 15.28 MB / 0.5776 GB, free: 62.73 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01479/1.295, allocations: 7.592 MB / 0.585 GB, free: 54.25 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00558/1.3, allocations: 1.588 MB / 0.5866 GB, free: 52.67 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01823/1.319, allocations: 4.511 MB / 0.591 GB, free: 48.12 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.922e-05/1.319, allocations: 55.88 kB / 0.591 GB, free: 48.05 MB / 395.1 MB Notification: Performance of pre-optimization done (n=159): time 7.124e-06/1.319, allocations: 0 / 0.591 GB, free: 48.05 MB / 395.1 MB Notification: Performance of matching and sorting (n=162): time 0.0219/1.341, allocations: 5.577 MB / 0.5965 GB, free: 42.36 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/1.341, allocations: 68.72 kB / 0.5965 GB, free: 42.29 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004361/1.345, allocations: 1.565 MB / 0.5981 GB, free: 40.68 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005213/1.346, allocations: 25.7 kB / 0.5981 GB, free: 40.65 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/1.347, allocations: 1.543 MB / 0.5996 GB, free: 39.09 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008328/1.348, allocations: 0.5227 MB / 0.6001 GB, free: 38.56 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001924/1.348, allocations: 0 / 0.6001 GB, free: 38.56 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/1.348, allocations: 386.8 kB / 0.6005 GB, free: 38.17 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/1.35, allocations: 0.8395 MB / 0.6013 GB, free: 37.33 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/1.353, allocations: 1.292 MB / 0.6025 GB, free: 35.84 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003004/1.356, allocations: 1.181 MB / 0.6037 GB, free: 34.67 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/1.356, allocations: 4 kB / 0.6037 GB, free: 34.66 MB / 395.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007595/1.363, allocations: 2.959 MB / 0.6066 GB, free: 31.66 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/1.363, allocations: 15.94 kB / 0.6066 GB, free: 31.65 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.002e-05/1.364, allocations: 16 kB / 0.6066 GB, free: 31.63 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002702/1.366, allocations: 0.691 MB / 0.6073 GB, free: 30.93 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/1.369, allocations: 371.4 kB / 0.6077 GB, free: 30.57 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/1.383, allocations: 10.01 MB / 0.6174 GB, free: 20.1 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002756/1.386, allocations: 60 kB / 0.6175 GB, free: 20.04 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005206/1.387, allocations: 76 kB / 0.6176 GB, free: 19.97 MB / 395.1 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.0005267/1.387, allocations: 156.3 kB / 0.6177 GB, free: 19.81 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008166/1.395, allocations: 2.833 MB / 0.6205 GB, free: 16.91 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009188/1.396, allocations: 205.5 kB / 0.6207 GB, free: 16.71 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008401/1.405, allocations: 3.001 MB / 0.6236 GB, free: 13.64 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/1.405, allocations: 16 kB / 0.6236 GB, free: 13.63 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/1.405, allocations: 12 kB / 0.6236 GB, free: 13.62 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.122e-05/1.405, allocations: 7.969 kB / 0.6236 GB, free: 13.61 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/1.42, allocations: 5.901 MB / 0.6294 GB, free: 7.613 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/1.42, allocations: 7.953 kB / 0.6294 GB, free: 7.605 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/1.422, allocations: 175.8 kB / 0.6296 GB, free: 7.434 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003695/1.426, allocations: 0.8795 MB / 0.6304 GB, free: 6.535 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003829/1.426, allocations: 20.36 kB / 0.6305 GB, free: 6.516 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02268/1.449, allocations: 14.23 MB / 0.6443 GB, free: 7.605 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.994e-06/1.449, allocations: 0 / 0.6443 GB, free: 7.605 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/1.461, allocations: 4.391 MB / 0.6486 GB, free: 3.074 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002008/1.463, allocations: 0.4906 MB / 0.6491 GB, free: 2.562 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004502/1.463, allocations: 19.94 kB / 0.6491 GB, free: 2.543 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001829/1.465, allocations: 67.92 kB / 0.6492 GB, free: 2.477 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006104/1.466, allocations: 157 kB / 0.6493 GB, free: 2.324 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/1.466, allocations: 39.98 kB / 0.6494 GB, free: 2.285 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.002883/1.469, allocations: 1.179 MB / 0.6505 GB, free: 1.082 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.469, allocations: 0.5625 kB / 0.6505 GB, free: 1.082 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.004285/1.473, allocations: 0.6484 MB / 0.6512 GB, free: 444 kB / 411.1 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.3654/1.839, allocations: 5.553 MB / 0.6566 GB, free: 94.59 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.007053/1.846, allocations: 2.818 MB / 0.6593 GB, free: 94.01 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.846, allocations: 3.031 kB / 0.6593 GB, free: 94.01 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005177/1.851, allocations: 2.084 MB / 0.6614 GB, free: 93.34 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004165/1.855, allocations: 463.8 kB / 0.6618 GB, free: 93.32 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02128/1.877, allocations: 6.252 MB / 0.6679 GB, free: 92 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005762/1.882, allocations: 2.694 MB / 0.6706 GB, free: 91.2 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/1.886, allocations: 1.327 MB / 0.6719 GB, free: 91.2 MB / 411.1 MB Notification: Performance of SimCode: time 1.442e-06/1.886, allocations: 0 / 0.6719 GB, free: 91.2 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.359/6.244, allocations: 159.9 MB / 0.828 GB, free: 127.5 MB / 443.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat