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_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_cpp_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_cpp_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.001585/0.001585, allocations: 181.7 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.064/2.064, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001248/0.001248, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.266e-05/3.287e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4775/0.5803, allocations: 108.5 MB / 477.7 MB, free: 1.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.5807, allocations: 81.7 kB / 477.8 MB, free: 1.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6116/1.192, allocations: 80.32 MB / 0.545 GB, free: 89.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.192, allocations: 0 / 0.545 GB, free: 89.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003561/1.193, allocations: 80.23 kB / 0.5451 GB, free: 89.74 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.01419/1.207, allocations: 3.204 MB / 0.5483 GB, free: 88.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/1.207, allocations: 9.156 kB / 0.5483 GB, free: 88.54 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001917/1.209, allocations: 444 kB / 0.5487 GB, free: 88.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0066/1.216, allocations: 0.7386 MB / 0.5494 GB, free: 88.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01292/1.229, allocations: 3.35 MB / 0.5527 GB, free: 87.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003371/1.229, allocations: 228.6 kB / 0.5529 GB, free: 87.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/1.23, allocations: 321.9 kB / 0.5532 GB, free: 87.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/1.244, allocations: 4.094 MB / 0.5572 GB, free: 87.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/1.244, allocations: 0 / 0.5572 GB, free: 87.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009405/1.245, allocations: 134.1 kB / 0.5573 GB, free: 87.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001822/1.245, allocations: 139.1 kB / 0.5575 GB, free: 87.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/1.256, allocations: 3.343 MB / 0.5607 GB, free: 87.33 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03562/1.292, allocations: 13.56 MB / 0.574 GB, free: 81.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009302/1.301, allocations: 6.78 MB / 0.5806 GB, free: 75.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003665/1.305, allocations: 1.367 MB / 0.5819 GB, free: 75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009937/1.315, allocations: 3.62 MB / 0.5855 GB, free: 73.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/1.315, allocations: 50.97 kB / 0.5855 GB, free: 72.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 4.188e-06/1.315, allocations: 0 / 0.5855 GB, free: 72.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.01499/1.33, allocations: 5.02 MB / 0.5904 GB, free: 70.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/1.33, allocations: 67.94 kB / 0.5905 GB, free: 70.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003799/1.334, allocations: 1.607 MB / 0.592 GB, free: 69.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000325/1.334, allocations: 51.58 kB / 0.5921 GB, free: 69.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/1.336, allocations: 1.365 MB / 0.5934 GB, free: 68.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006231/1.336, allocations: 488.1 kB / 0.5939 GB, free: 68.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/1.336, allocations: 31.97 kB / 0.5939 GB, free: 68.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/1.336, allocations: 382.7 kB / 0.5943 GB, free: 67.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001819/1.338, allocations: 0.713 MB / 0.595 GB, free: 67.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002049/1.34, allocations: 1.166 MB / 0.5961 GB, free: 66.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/1.343, allocations: 0.9385 MB / 0.597 GB, free: 66.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/1.343, allocations: 2.844 kB / 0.597 GB, free: 66.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006591/1.349, allocations: 2.45 MB / 0.5994 GB, free: 65.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/1.349, allocations: 11.19 kB / 0.5994 GB, free: 65.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.882e-05/1.349, allocations: 10.44 kB / 0.5995 GB, free: 65.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002271/1.352, allocations: 0.4981 MB / 0.5999 GB, free: 65.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/1.355, allocations: 387.5 kB / 0.6003 GB, free: 65.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/1.366, allocations: 6.373 MB / 0.6065 GB, free: 60.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002523/1.369, allocations: 85 kB / 0.6066 GB, free: 60.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003522/1.369, allocations: 68.06 kB / 0.6067 GB, free: 60.56 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.0004568/1.37, allocations: 205.5 kB / 0.6069 GB, free: 60.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006399/1.37, allocations: 196.1 kB / 0.6071 GB, free: 60.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006279/1.377, allocations: 2.403 MB / 0.6094 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/1.377, allocations: 13.97 kB / 0.6094 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.838e-05/1.377, allocations: 3.969 kB / 0.6094 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.42e-05/1.377, allocations: 10.08 kB / 0.6094 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/1.391, allocations: 5.397 MB / 0.6147 GB, free: 56.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/1.391, allocations: 0 / 0.6147 GB, free: 56.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.393, allocations: 218.2 kB / 0.6149 GB, free: 56.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002247/1.395, allocations: 0.4892 MB / 0.6154 GB, free: 55.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000285/1.395, allocations: 28 kB / 0.6154 GB, free: 55.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.409, allocations: 10.42 MB / 0.6256 GB, free: 45.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.409, allocations: 4.031 kB / 0.6256 GB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008082/1.417, allocations: 3.517 MB / 0.629 GB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/1.418, allocations: 454.1 kB / 0.6295 GB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006299/1.419, allocations: 31.42 kB / 0.6295 GB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001975/1.421, allocations: 73.55 kB / 0.6296 GB, free: 41.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004465/1.421, allocations: 110.9 kB / 0.6297 GB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/1.422, allocations: 43.52 kB / 0.6297 GB, free: 41.43 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002857/1.425, allocations: 1.237 MB / 0.6309 GB, free: 40.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.425, allocations: 0 / 0.6309 GB, free: 40.31 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003604/1.428, allocations: 0.6201 MB / 0.6315 GB, free: 39.7 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.009008/1.437, allocations: 4.755 MB / 0.6362 GB, free: 35.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006077/1.443, allocations: 2.277 MB / 0.6384 GB, free: 33.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/1.443, allocations: 7.938 kB / 0.6384 GB, free: 33.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003745/1.447, allocations: 1.663 MB / 0.64 GB, free: 31.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004068/1.451, allocations: 473.5 kB / 0.6405 GB, free: 31.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/1.468, allocations: 5.61 MB / 0.646 GB, free: 26.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003188/1.471, allocations: 2.378 MB / 0.6483 GB, free: 24.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002651/1.474, allocations: 1.137 MB / 0.6494 GB, free: 23.25 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/1.474, allocations: 0 / 0.6494 GB, free: 23.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.269/5.743, allocations: 109.8 MB / 0.7567 GB, free: 78.27 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat does not exist to compare? outputFormat=mat