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_DOL.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_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",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.001536/0.001536, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.909/1.909, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001126/0.001125, allocations: 94.58 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003892, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3265, allocations: 47.58 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.5255, allocations: 122.2 MB / 496.9 MB, free: 6.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.5258, allocations: 95.89 kB / 497 MB, free: 6.227 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6695/1.195, allocations: 117.4 MB / 0.6 GB, free: 15.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.537e-06/1.195, allocations: 0 / 0.6 GB, free: 15.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005396/1.196, allocations: 136 kB / 0.6002 GB, free: 15.69 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02275/1.219, allocations: 5.428 MB / 0.6055 GB, free: 10.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/1.219, allocations: 8.031 kB / 0.6055 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002925/1.222, allocations: 0.7154 MB / 0.6062 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007608/1.229, allocations: 1 MB / 0.6071 GB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01619/1.246, allocations: 4.622 MB / 0.6117 GB, free: 3.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004908/1.246, allocations: 382.3 kB / 0.612 GB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002159/1.248, allocations: 0.5076 MB / 0.6125 GB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02388/1.272, allocations: 6.846 MB / 0.6192 GB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002985/1.273, allocations: 11.86 kB / 0.6192 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001645/1.274, allocations: 227.9 kB / 0.6194 GB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003604/1.275, allocations: 230.2 kB / 0.6196 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0205/1.295, allocations: 5.6 MB / 0.6251 GB, free: 5.742 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3608/1.656, allocations: 21.44 MB / 0.6461 GB, free: 56.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01271/1.669, allocations: 8.762 MB / 0.6546 GB, free: 50.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/1.684, allocations: 5.201 MB / 0.6597 GB, free: 49.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/1.684, allocations: 57.88 kB / 0.6597 GB, free: 49.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=230): time 6.292e-06/1.684, allocations: 0 / 0.6597 GB, free: 49.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=249): time 0.04032/1.725, allocations: 11.58 MB / 0.6711 GB, free: 47.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/1.725, allocations: 76.22 kB / 0.6711 GB, free: 47.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006414/1.731, allocations: 2.608 MB / 0.6737 GB, free: 47.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005664/1.732, allocations: 70.48 kB / 0.6737 GB, free: 47.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/1.734, allocations: 2.127 MB / 0.6758 GB, free: 46.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/1.735, allocations: 0.8496 MB / 0.6766 GB, free: 46.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003725/1.735, allocations: 62.62 kB / 0.6767 GB, free: 46.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002091/1.736, allocations: 420.5 kB / 0.6771 GB, free: 45.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004096/1.74, allocations: 1.387 MB / 0.6785 GB, free: 45.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004553/1.744, allocations: 2.133 MB / 0.6805 GB, free: 45.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004741/1.749, allocations: 1.727 MB / 0.6822 GB, free: 44.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.421e-05/1.749, allocations: 5.781 kB / 0.6822 GB, free: 44.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01383/1.763, allocations: 4.517 MB / 0.6866 GB, free: 44.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/1.763, allocations: 18.73 kB / 0.6867 GB, free: 44.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.849e-05/1.763, allocations: 22.66 kB / 0.6867 GB, free: 44.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003221/1.766, allocations: 0.7601 MB / 0.6874 GB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00506/1.772, allocations: 0.6529 MB / 0.6881 GB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01593/1.788, allocations: 13.58 MB / 0.7013 GB, free: 35.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004203/1.792, allocations: 164.1 kB / 0.7015 GB, free: 35.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006515/1.792, allocations: 122.7 kB / 0.7016 GB, free: 35.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004432/1.797, allocations: 1.598 MB / 0.7032 GB, free: 35.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00101/1.798, allocations: 319.4 kB / 0.7035 GB, free: 35.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/1.81, allocations: 4.334 MB / 0.7077 GB, free: 34.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.948e-05/1.81, allocations: 23.12 kB / 0.7077 GB, free: 34.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-05/1.81, allocations: 7.844 kB / 0.7077 GB, free: 34.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.484e-05/1.811, allocations: 11.06 kB / 0.7077 GB, free: 34.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02644/1.837, allocations: 9.317 MB / 0.7168 GB, free: 30.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/1.837, allocations: 3.531 kB / 0.7168 GB, free: 30.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003523/1.841, allocations: 411.4 kB / 0.7172 GB, free: 30.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004116/1.845, allocations: 0.9254 MB / 0.7181 GB, free: 30.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000571/1.845, allocations: 67.33 kB / 0.7182 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0215/1.867, allocations: 16.81 MB / 0.7346 GB, free: 17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/1.867, allocations: 3.969 kB / 0.7346 GB, free: 17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/1.883, allocations: 6.58 MB / 0.741 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002674/1.886, allocations: 0.7125 MB / 0.7417 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/1.887, allocations: 59.11 kB / 0.7418 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003707/1.891, allocations: 146.2 kB / 0.7419 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009598/1.892, allocations: 205.2 kB / 0.7421 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.892, allocations: 73.12 kB / 0.7422 GB, free: 13.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005165/1.898, allocations: 1.989 MB / 0.7441 GB, free: 12.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.898, allocations: 0 / 0.7441 GB, free: 12.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006067/1.904, allocations: 1.029 MB / 0.7452 GB, free: 12.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 181 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01786/1.922, allocations: 8.416 MB / 0.7534 GB, free: 7.539 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01134/1.933, allocations: 4.672 MB / 0.7579 GB, free: 4.691 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/1.933, allocations: 0 / 0.7579 GB, free: 4.691 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007238/1.94, allocations: 3.115 MB / 0.761 GB, free: 1.844 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006291/1.947, allocations: 0.8401 MB / 0.7618 GB, free: 1.207 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1059/2.053, allocations: 46.03 MB / 0.8067 GB, free: 6.887 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00744/2.06, allocations: 3.449 MB / 0.8101 GB, free: 4.273 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005767/2.066, allocations: 1.977 MB / 0.812 GB, free: 2.441 MB / 458.7 MB Notification: Performance of SimCode: time 1.723e-06/2.066, allocations: 0 / 0.812 GB, free: 2.441 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.488/7.553, allocations: 321.3 MB / 1.126 GB, free: 28.95 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_DOL_res.mat does not exist to compare? outputFormat=mat