Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009659/0.0009659, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.264/1.264, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008444/0.0008443, allocations: 90.67 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002649, allocations: 12 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2499, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1394/0.3893, allocations: 122.2 MB / 498.2 MB, free: 6.309 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.3896, allocations: 91.95 kB / 498.3 MB, free: 6.219 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4176/0.8073, allocations: 117.4 MB / 0.6013 GB, free: 15.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.185e-06/0.8073, allocations: 4 kB / 0.6013 GB, free: 15.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003311/0.8077, allocations: 139.8 kB / 0.6014 GB, free: 15.77 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.01464/0.8223, allocations: 5.424 MB / 0.6067 GB, free: 10.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.8224, allocations: 16.02 kB / 0.6067 GB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002547/0.825, allocations: 0.7038 MB / 0.6074 GB, free: 9.535 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005015/0.83, allocations: 1.004 MB / 0.6084 GB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01062/0.8406, allocations: 4.625 MB / 0.6129 GB, free: 3.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003873/0.8411, allocations: 386.3 kB / 0.6133 GB, free: 3.441 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00174/0.8428, allocations: 0.5115 MB / 0.6138 GB, free: 2.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01396/0.8568, allocations: 6.842 MB / 0.6204 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/0.857, allocations: 15.8 kB / 0.6205 GB, free: 11.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005359/0.8575, allocations: 224 kB / 0.6207 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000216/0.8578, allocations: 230.2 kB / 0.6209 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01141/0.8692, allocations: 5.596 MB / 0.6264 GB, free: 5.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2748/1.144, allocations: 21.44 MB / 0.6473 GB, free: 56.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007073/1.151, allocations: 8.756 MB / 0.6558 GB, free: 50.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009169/1.16, allocations: 5.201 MB / 0.6609 GB, free: 49.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/1.16, allocations: 60.53 kB / 0.661 GB, free: 49.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=230): time 3.246e-06/1.16, allocations: 0 / 0.661 GB, free: 49.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=249): time 0.01942/1.18, allocations: 11.58 MB / 0.6723 GB, free: 47.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/1.18, allocations: 82.19 kB / 0.6724 GB, free: 47.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003338/1.183, allocations: 2.608 MB / 0.6749 GB, free: 47.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001613/1.183, allocations: 70.2 kB / 0.675 GB, free: 47.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/1.185, allocations: 2.285 MB / 0.6772 GB, free: 46.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005197/1.185, allocations: 0.8541 MB / 0.678 GB, free: 46.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/1.186, allocations: 55.38 kB / 0.6781 GB, free: 46.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/1.186, allocations: 422.8 kB / 0.6785 GB, free: 45.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/1.188, allocations: 1.386 MB / 0.6799 GB, free: 45.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002104/1.19, allocations: 2.127 MB / 0.6819 GB, free: 45.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002386/1.192, allocations: 1.733 MB / 0.6836 GB, free: 44.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.358e-05/1.192, allocations: 6.406 kB / 0.6836 GB, free: 44.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007771/1.2, allocations: 4.719 MB / 0.6882 GB, free: 44.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/1.2, allocations: 14.34 kB / 0.6883 GB, free: 44.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.534e-05/1.2, allocations: 25.22 kB / 0.6883 GB, free: 44.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/1.202, allocations: 0.7667 MB / 0.689 GB, free: 44.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002196/1.204, allocations: 0.6557 MB / 0.6897 GB, free: 44.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009287/1.213, allocations: 13.56 MB / 0.7029 GB, free: 35.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002653/1.216, allocations: 161.5 kB / 0.7031 GB, free: 35.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002232/1.216, allocations: 125.9 kB / 0.7032 GB, free: 35.39 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.003016/1.219, allocations: 1.599 MB / 0.7047 GB, free: 35.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006899/1.22, allocations: 324.2 kB / 0.7051 GB, free: 35.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006412/1.226, allocations: 4.322 MB / 0.7093 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/1.226, allocations: 30.09 kB / 0.7093 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/1.226, allocations: 10.66 kB / 0.7093 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.022e-05/1.226, allocations: 11.48 kB / 0.7093 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0138/1.24, allocations: 9.315 MB / 0.7184 GB, free: 30.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/1.24, allocations: 5.719 kB / 0.7184 GB, free: 30.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/1.242, allocations: 403.7 kB / 0.7188 GB, free: 30.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002223/1.244, allocations: 0.9295 MB / 0.7197 GB, free: 30.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/1.244, allocations: 67.95 kB / 0.7198 GB, free: 30.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/1.257, allocations: 16.81 MB / 0.7362 GB, free: 16.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.257, allocations: 5.25 kB / 0.7362 GB, free: 16.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00885/1.266, allocations: 6.579 MB / 0.7426 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002058/1.268, allocations: 0.711 MB / 0.7433 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000538/1.268, allocations: 59.31 kB / 0.7434 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/1.27, allocations: 142.7 kB / 0.7435 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004352/1.27, allocations: 210.5 kB / 0.7437 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/1.27, allocations: 72.11 kB / 0.7438 GB, free: 13.03 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002785/1.273, allocations: 1.992 MB / 0.7457 GB, free: 12.28 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/1.273, allocations: 0 / 0.7457 GB, free: 12.28 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003591/1.277, allocations: 1.028 MB / 0.7467 GB, free: 12.18 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.008704/1.285, allocations: 8.427 MB / 0.755 GB, free: 7.422 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00601/1.291, allocations: 4.673 MB / 0.7595 GB, free: 4.465 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.292, allocations: 0 / 0.7595 GB, free: 4.465 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003756/1.295, allocations: 3.117 MB / 0.7626 GB, free: 1.621 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003899/1.299, allocations: 0.8332 MB / 0.7634 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07018/1.369, allocations: 46.19 MB / 0.8085 GB, free: 6.828 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/1.373, allocations: 3.53 MB / 0.8119 GB, free: 4.152 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002937/1.376, allocations: 0.7797 MB / 0.8127 GB, free: 3.613 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002558/1.378, allocations: 1.954 MB / 0.8146 GB, free: 1.801 MB / 458.7 MB Notification: Performance of SimCode: time 6.01e-07/1.379, allocations: 0 / 0.8146 GB, free: 1.801 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3607/1.739, allocations: 87.66 MB / 0.9002 GB, free: 77.32 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001448/1.739, allocations: 218 kB / 0.9004 GB, free: 77.08 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.067/5.806, allocations: 3.938 kB / 0.9004 GB, free: 77.08 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat