Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001869/0.001869, allocations: 175.7 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.81/1.81, allocations: 205.3 MB / 214.4 MB, free: 1.68 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009407/0.0009408, allocations: 86.7 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.707e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09381/0.09384, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4621, allocations: 109.9 MB / 473.1 MB, free: 2.266 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.4624, allocations: 87.56 kB / 473.2 MB, free: 2.219 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4831/0.9456, allocations: 87.12 MB / 0.5471 GB, free: 87.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.9456, allocations: 0 / 0.5471 GB, free: 87.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002988/0.9459, allocations: 90.14 kB / 0.5472 GB, free: 87.66 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01235/0.9583, allocations: 3.688 MB / 0.5508 GB, free: 86.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.9583, allocations: 9.312 kB / 0.5508 GB, free: 86.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005014/0.9633, allocations: 0.7944 MB / 0.5516 GB, free: 86.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009534/0.9729, allocations: 3.661 MB / 0.5552 GB, free: 85.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.9731, allocations: 122.8 kB / 0.5553 GB, free: 85.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/0.9742, allocations: 210 kB / 0.5555 GB, free: 85.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007965/0.9822, allocations: 3.794 MB / 0.5592 GB, free: 85.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009252/0.9914, allocations: 4.325 MB / 0.5634 GB, free: 85.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.66e-05/0.9916, allocations: 8.312 kB / 0.5634 GB, free: 85.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003072/0.9919, allocations: 3.75 kB / 0.5634 GB, free: 85.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.992, allocations: 156.7 kB / 0.5636 GB, free: 85.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02232/1.014, allocations: 15.28 MB / 0.5785 GB, free: 79.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005665/1.02, allocations: 7.595 MB / 0.5859 GB, free: 73.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001989/1.022, allocations: 1.598 MB / 0.5875 GB, free: 72.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00736/1.03, allocations: 4.499 MB / 0.5919 GB, free: 70.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.066e-05/1.03, allocations: 51.5 kB / 0.5919 GB, free: 70.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 5.29e-06/1.03, allocations: 0 / 0.5919 GB, free: 70.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.009704/1.039, allocations: 5.578 MB / 0.5974 GB, free: 67.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/1.039, allocations: 73.22 kB / 0.5975 GB, free: 67.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002527/1.042, allocations: 1.562 MB / 0.599 GB, free: 66.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/1.042, allocations: 25.7 kB / 0.599 GB, free: 66.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008937/1.043, allocations: 1.62 MB / 0.6006 GB, free: 65.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003596/1.043, allocations: 0.5132 MB / 0.6011 GB, free: 65.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.872e-05/1.043, allocations: 7.562 kB / 0.6011 GB, free: 65.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/1.044, allocations: 378 kB / 0.6015 GB, free: 64.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/1.045, allocations: 0.8357 MB / 0.6023 GB, free: 64.49 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/1.046, allocations: 1.298 MB / 0.6035 GB, free: 63.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/1.048, allocations: 1.184 MB / 0.6047 GB, free: 63.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/1.048, allocations: 7.312 kB / 0.6047 GB, free: 63.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.00462/1.052, allocations: 3.081 MB / 0.6077 GB, free: 61.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/1.052, allocations: 8.031 kB / 0.6077 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/1.052, allocations: 19.34 kB / 0.6077 GB, free: 61.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/1.054, allocations: 0.6945 MB / 0.6084 GB, free: 61.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/1.055, allocations: 366.9 kB / 0.6088 GB, free: 61.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008441/1.064, allocations: 10.03 MB / 0.6186 GB, free: 54.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002067/1.066, allocations: 53.92 kB / 0.6186 GB, free: 54.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/1.066, allocations: 74.16 kB / 0.6187 GB, free: 54.18 MB / 410.7 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.000339/1.066, allocations: 158.8 kB / 0.6188 GB, free: 54.03 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004246/1.07, allocations: 2.835 MB / 0.6216 GB, free: 52.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003593/1.071, allocations: 208.2 kB / 0.6218 GB, free: 52.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/1.075, allocations: 3.002 MB / 0.6247 GB, free: 49.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/1.075, allocations: 20 kB / 0.6248 GB, free: 49.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/1.075, allocations: 8 kB / 0.6248 GB, free: 49.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/1.075, allocations: 10.84 kB / 0.6248 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009255/1.085, allocations: 5.895 MB / 0.6305 GB, free: 44.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/1.085, allocations: 0 / 0.6305 GB, free: 44.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007574/1.086, allocations: 181 kB / 0.6307 GB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001849/1.087, allocations: 0.8754 MB / 0.6316 GB, free: 43.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/1.088, allocations: 19.89 kB / 0.6316 GB, free: 43.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/1.099, allocations: 14.23 MB / 0.6455 GB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/1.099, allocations: 4.031 kB / 0.6455 GB, free: 30.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00602/1.105, allocations: 4.389 MB / 0.6498 GB, free: 26.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/1.106, allocations: 0.498 MB / 0.6502 GB, free: 25.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002825/1.107, allocations: 15.66 kB / 0.6503 GB, free: 25.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009847/1.108, allocations: 58.39 kB / 0.6503 GB, free: 25.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003842/1.108, allocations: 158 kB / 0.6505 GB, free: 25.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-05/1.108, allocations: 44 kB / 0.6505 GB, free: 25.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001673/1.11, allocations: 1.18 MB / 0.6517 GB, free: 24.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.031e-06/1.11, allocations: 0 / 0.6517 GB, free: 24.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002827/1.113, allocations: 0.644 MB / 0.6523 GB, free: 23.8 MB / 410.7 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.006135/1.119, allocations: 5.56 MB / 0.6577 GB, free: 18.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003631/1.122, allocations: 2.819 MB / 0.6605 GB, free: 16.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/1.122, allocations: 4.125 kB / 0.6605 GB, free: 16.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002582/1.125, allocations: 2.094 MB / 0.6625 GB, free: 14.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/1.128, allocations: 469.6 kB / 0.663 GB, free: 13.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/1.14, allocations: 6.347 MB / 0.6692 GB, free: 8.273 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/1.142, allocations: 2.741 MB / 0.6718 GB, free: 6.141 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001571/1.143, allocations: 435.1 kB / 0.6723 GB, free: 5.844 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/1.145, allocations: 1.312 MB / 0.6735 GB, free: 4.535 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/1.145, allocations: 0 / 0.6735 GB, free: 4.535 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3621/1.507, allocations: 54.91 MB / 0.7272 GB, free: 83.46 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002428/1.507, allocations: 161.7 kB / 0.7273 GB, free: 83.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.671/5.178, allocations: 4 kB / 0.7273 GB, free: 83.27 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat