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_Transformer.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_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",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.001458/0.001462, allocations: 185.7 kB / 16.41 MB, free: 5.723 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.887/1.887, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001129/0.001129, allocations: 89.55 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003785, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3158, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1904/0.5062, allocations: 118.2 MB / 492.8 MB, free: 10.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.5066, allocations: 91.95 kB / 492.9 MB, free: 10.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.729/1.236, allocations: 132.8 MB / 0.6111 GB, free: 3.641 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.236, allocations: 3.938 kB / 0.6111 GB, free: 3.637 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005868/1.236, allocations: 119.9 kB / 0.6112 GB, free: 3.52 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.0232/1.259, allocations: 5.286 MB / 0.6163 GB, free: 14.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/1.26, allocations: 8.031 kB / 0.6164 GB, free: 14.14 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003132/1.263, allocations: 0.6787 MB / 0.617 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008011/1.271, allocations: 0.9851 MB / 0.618 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02167/1.292, allocations: 4.512 MB / 0.6224 GB, free: 7.875 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007905/1.293, allocations: 369.7 kB / 0.6227 GB, free: 7.512 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002311/1.296, allocations: 475.9 kB / 0.6232 GB, free: 7.047 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02425/1.32, allocations: 6.735 MB / 0.6298 GB, free: 124 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002285/1.32, allocations: 7.938 kB / 0.6298 GB, free: 116 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001506/1.322, allocations: 208 kB / 0.63 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003728/1.322, allocations: 241.8 kB / 0.6302 GB, free: 15.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02008/1.342, allocations: 5.579 MB / 0.6356 GB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3548/1.697, allocations: 21 MB / 0.6562 GB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01417/1.711, allocations: 9.934 MB / 0.6659 GB, free: 37.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01458/1.726, allocations: 5.469 MB / 0.6712 GB, free: 36.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.21e-05/1.726, allocations: 61.38 kB / 0.6713 GB, free: 36.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 5.21e-06/1.726, allocations: 3.25 kB / 0.6713 GB, free: 36.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=234): time 0.03007/1.756, allocations: 10.04 MB / 0.6811 GB, free: 34.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/1.756, allocations: 75.19 kB / 0.6811 GB, free: 34.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006832/1.763, allocations: 2.636 MB / 0.6837 GB, free: 34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005599/1.764, allocations: 66.14 kB / 0.6838 GB, free: 33.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001912/1.766, allocations: 1.992 MB / 0.6857 GB, free: 33.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/1.767, allocations: 0.7855 MB / 0.6865 GB, free: 32.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/1.767, allocations: 59.03 kB / 0.6865 GB, free: 32.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002169/1.768, allocations: 412.2 kB / 0.6869 GB, free: 32.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004009/1.772, allocations: 1.302 MB / 0.6882 GB, free: 32.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004806/1.776, allocations: 1.874 MB / 0.69 GB, free: 31.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004935/1.781, allocations: 1.604 MB / 0.6916 GB, free: 31.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.452e-05/1.781, allocations: 4.094 kB / 0.6916 GB, free: 31.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=327) (initialization): time 0.01145/1.793, allocations: 4.042 MB / 0.6956 GB, free: 31.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/1.793, allocations: 14.05 kB / 0.6956 GB, free: 31.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-05/1.793, allocations: 16.03 kB / 0.6956 GB, free: 31.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002738/1.796, allocations: 0.6536 MB / 0.6962 GB, free: 31.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004646/1.801, allocations: 0.5646 MB / 0.6968 GB, free: 31.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/1.815, allocations: 10.22 MB / 0.7068 GB, free: 26.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003841/1.819, allocations: 115.2 kB / 0.7069 GB, free: 26.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006153/1.82, allocations: 100.4 kB / 0.707 GB, free: 26.17 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (277): * Single equations (assignments): 272 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004435/1.824, allocations: 1.604 MB / 0.7085 GB, free: 26.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/1.825, allocations: 318.5 kB / 0.7088 GB, free: 25.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/1.836, allocations: 4.004 MB / 0.7127 GB, free: 24.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.74e-05/1.836, allocations: 25.28 kB / 0.7128 GB, free: 24.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-05/1.836, allocations: 10.62 kB / 0.7128 GB, free: 24.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.405e-05/1.836, allocations: 11.44 kB / 0.7128 GB, free: 24.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02318/1.86, allocations: 8.716 MB / 0.7213 GB, free: 20.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.257e-05/1.86, allocations: 7.609 kB / 0.7213 GB, free: 20.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003251/1.863, allocations: 360.1 kB / 0.7216 GB, free: 20.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003646/1.867, allocations: 0.819 MB / 0.7224 GB, free: 20.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004905/1.867, allocations: 57.5 kB / 0.7225 GB, free: 20.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/1.887, allocations: 14.67 MB / 0.7368 GB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/1.887, allocations: 13.5 kB / 0.7368 GB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01529/1.903, allocations: 6.009 MB / 0.7427 GB, free: 6.512 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002687/1.906, allocations: 0.699 MB / 0.7434 GB, free: 6.062 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.907, allocations: 56.67 kB / 0.7434 GB, free: 6.027 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003536/1.91, allocations: 127.5 kB / 0.7436 GB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000935/1.911, allocations: 188.8 kB / 0.7437 GB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002528/1.912, allocations: 71.66 kB / 0.7438 GB, free: 5.953 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005379/1.917, allocations: 2.035 MB / 0.7458 GB, free: 5.176 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.917, allocations: 0 / 0.7458 GB, free: 5.176 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005656/1.923, allocations: 0.9871 MB / 0.7468 GB, free: 5.078 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * 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%) 8,(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01703/1.94, allocations: 7.395 MB / 0.754 GB, free: 1.227 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01062/1.95, allocations: 3.962 MB / 0.7579 GB, free: 15.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.95, allocations: 0 / 0.7579 GB, free: 15.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007484/1.958, allocations: 2.696 MB / 0.7605 GB, free: 14.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007188/1.965, allocations: 0.8615 MB / 0.7613 GB, free: 13.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09128/2.057, allocations: 39.59 MB / 0.8 GB, free: 9.586 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006729/2.063, allocations: 3.422 MB / 0.8033 GB, free: 6.969 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00532/2.069, allocations: 1.841 MB / 0.8051 GB, free: 5.262 MB / 458.7 MB Notification: Performance of SimCode: time 2.154e-06/2.069, allocations: 4 kB / 0.8051 GB, free: 5.258 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.248/7.317, allocations: 221 MB / 1.021 GB, free: 102.7 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer_res.mat does not exist to compare? outputFormat=mat