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.001171/0.001171, allocations: 177.7 kB / 8.698 MB, free: 388 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.787/1.787, allocations: 205.3 MB / 214.4 MB, free: 1.738 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.0009957/0.0009957, allocations: 78.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.582e-05/1.577e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3799/0.482, allocations: 121.8 MB / 484.9 MB, free: 6.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.4823, allocations: 84.95 kB / 485 MB, free: 6.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5054/0.9877, allocations: 116 MB / 0.587 GB, free: 88.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.9877, allocations: 0 / 0.587 GB, free: 88.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005782/0.9883, allocations: 142 kB / 0.5871 GB, free: 88.38 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01669/1.005, allocations: 4.916 MB / 0.5919 GB, free: 86.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.005, allocations: 10.59 kB / 0.5919 GB, free: 86.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006184/1.011, allocations: 0.9945 MB / 0.5929 GB, free: 85.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/1.022, allocations: 4.59 MB / 0.5974 GB, free: 83.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002343/1.023, allocations: 164 kB / 0.5975 GB, free: 83.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00158/1.024, allocations: 313.9 kB / 0.5978 GB, free: 83.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01034/1.035, allocations: 5.142 MB / 0.6028 GB, free: 81.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01412/1.049, allocations: 5.983 MB / 0.6087 GB, free: 75.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002604/1.049, allocations: 7.906 kB / 0.6087 GB, free: 75.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001439/1.051, allocations: 4 kB / 0.6087 GB, free: 75.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002657/1.051, allocations: 233.5 kB / 0.6089 GB, free: 75.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03703/1.088, allocations: 20.46 MB / 0.6289 GB, free: 54.92 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007324/1.095, allocations: 8.551 MB / 0.6372 GB, free: 45.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003303/1.099, allocations: 2.117 MB / 0.6393 GB, free: 43.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/1.11, allocations: 5.983 MB / 0.6451 GB, free: 37.29 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/1.11, allocations: 56.56 kB / 0.6452 GB, free: 37.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 4.409e-06/1.11, allocations: 0 / 0.6452 GB, free: 37.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=239): time 0.01514/1.125, allocations: 8.207 MB / 0.6532 GB, free: 28.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/1.125, allocations: 77.41 kB / 0.6533 GB, free: 28.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004687/1.13, allocations: 2.121 MB / 0.6554 GB, free: 26.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002042/1.13, allocations: 29.7 kB / 0.6554 GB, free: 26.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/1.132, allocations: 2.309 MB / 0.6576 GB, free: 24.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005739/1.132, allocations: 0.7851 MB / 0.6584 GB, free: 23.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/1.133, allocations: 0 / 0.6584 GB, free: 23.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/1.133, allocations: 423.9 kB / 0.6588 GB, free: 23.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/1.134, allocations: 1.236 MB / 0.66 GB, free: 21.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001945/1.136, allocations: 1.972 MB / 0.6619 GB, free: 19.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002555/1.139, allocations: 1.724 MB / 0.6636 GB, free: 17.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-05/1.139, allocations: 8 kB / 0.6636 GB, free: 17.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.006652/1.146, allocations: 4.337 MB / 0.6679 GB, free: 13.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/1.146, allocations: 19.98 kB / 0.6679 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/1.146, allocations: 24 kB / 0.6679 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001608/1.147, allocations: 0.7502 MB / 0.6686 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00222/1.15, allocations: 0.6357 MB / 0.6693 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009266/1.159, allocations: 12.8 MB / 0.6818 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00288/1.162, allocations: 107.8 kB / 0.6819 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003181/1.162, allocations: 120 kB / 0.682 GB, free: 14.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 312 * 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%) 1,(1,100.0%) 8,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005513/1.163, allocations: 180.2 kB / 0.6821 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006749/1.169, allocations: 3.77 MB / 0.6858 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008305/1.17, allocations: 288.4 kB / 0.6861 GB, free: 9.801 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007501/1.178, allocations: 4.021 MB / 0.69 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/1.178, allocations: 20 kB / 0.6901 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/1.178, allocations: 12 kB / 0.6901 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.598e-05/1.178, allocations: 15.91 kB / 0.6901 GB, free: 5.648 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3304/1.508, allocations: 8.262 MB / 0.6981 GB, free: 92.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/1.508, allocations: 7.125 kB / 0.6982 GB, free: 92.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001863/1.51, allocations: 383.4 kB / 0.6985 GB, free: 92.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003044/1.513, allocations: 0.9075 MB / 0.6994 GB, free: 92.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000355/1.514, allocations: 34.7 kB / 0.6994 GB, free: 92.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01532/1.529, allocations: 15.83 MB / 0.7149 GB, free: 82.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.727e-06/1.529, allocations: 9.844 kB / 0.7149 GB, free: 82.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/1.539, allocations: 6.154 MB / 0.7209 GB, free: 81.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00201/1.541, allocations: 0.6615 MB / 0.7216 GB, free: 81.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004846/1.542, allocations: 25.41 kB / 0.7216 GB, free: 81.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/1.543, allocations: 99.67 kB / 0.7217 GB, free: 81.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005764/1.544, allocations: 196.3 kB / 0.7219 GB, free: 81.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/1.544, allocations: 71.92 kB / 0.7219 GB, free: 81.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002903/1.547, allocations: 1.578 MB / 0.7235 GB, free: 81.23 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.547, allocations: 0 / 0.7235 GB, free: 81.23 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003901/1.551, allocations: 0.893 MB / 0.7244 GB, free: 81.23 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 171 * 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%) 1,(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.009393/1.56, allocations: 7.992 MB / 0.7322 GB, free: 78.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005618/1.566, allocations: 4.247 MB / 0.7363 GB, free: 77.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/1.566, allocations: 0 / 0.7363 GB, free: 77.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004012/1.57, allocations: 2.877 MB / 0.7391 GB, free: 76.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004248/1.574, allocations: 0.6318 MB / 0.7397 GB, free: 76.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01907/1.593, allocations: 9.373 MB / 0.7489 GB, free: 73.15 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003275/1.597, allocations: 3.524 MB / 0.7523 GB, free: 71.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003099/1.6, allocations: 0.7192 MB / 0.753 GB, free: 71.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002344/1.602, allocations: 1.939 MB / 0.7549 GB, free: 70.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/1.602, allocations: 0 / 0.7549 GB, free: 70.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1337/1.736, allocations: 74.25 MB / 0.8274 GB, free: 19.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/1.736, allocations: 156.1 kB / 0.8276 GB, free: 19 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.408/6.144, allocations: 1.969 kB / 0.8276 GB, free: 19 MB / 426.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