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.001628/0.001633, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.069/2.069, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001082/0.001082, allocations: 78.67 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.786e-05/3.806e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 47.58 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4881/0.5896, allocations: 122.2 MB / 491.3 MB, free: 3.359 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.59, allocations: 86.14 kB / 491.4 MB, free: 3.316 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7452/1.335, allocations: 117.5 MB / 0.5947 GB, free: 86.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.756e-06/1.335, allocations: 3.938 kB / 0.5947 GB, free: 86.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005581/1.336, allocations: 126.3 kB / 0.5948 GB, free: 86 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.01983/1.356, allocations: 4.93 MB / 0.5996 GB, free: 82.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/1.356, allocations: 7.906 kB / 0.5996 GB, free: 82.9 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003115/1.359, allocations: 0.7042 MB / 0.6003 GB, free: 82.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007959/1.367, allocations: 0.9867 MB / 0.6013 GB, free: 81.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01698/1.384, allocations: 4.601 MB / 0.6058 GB, free: 77.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004957/1.384, allocations: 385.9 kB / 0.6061 GB, free: 76.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002221/1.387, allocations: 0.5076 MB / 0.6066 GB, free: 76.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02186/1.409, allocations: 6.735 MB / 0.6132 GB, free: 69.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003702/1.409, allocations: 7.906 kB / 0.6132 GB, free: 69.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001823/1.411, allocations: 221.9 kB / 0.6134 GB, free: 69.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002854/1.411, allocations: 226.2 kB / 0.6137 GB, free: 68.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01897/1.43, allocations: 5.433 MB / 0.619 GB, free: 63.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05666/1.487, allocations: 21.44 MB / 0.6399 GB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/1.499, allocations: 8.674 MB / 0.6484 GB, free: 32.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005735/1.505, allocations: 2.203 MB / 0.6505 GB, free: 29.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01808/1.523, allocations: 6.16 MB / 0.6565 GB, free: 23.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/1.523, allocations: 68.42 kB / 0.6566 GB, free: 23.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 4.849e-06/1.523, allocations: 0 / 0.6566 GB, free: 23.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=239): time 0.02865/1.552, allocations: 8.969 MB / 0.6654 GB, free: 14.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/1.552, allocations: 85.34 kB / 0.6654 GB, free: 14.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006202/1.558, allocations: 2.582 MB / 0.668 GB, free: 11.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006092/1.559, allocations: 65.7 kB / 0.668 GB, free: 11.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001644/1.561, allocations: 2.148 MB / 0.6701 GB, free: 9.602 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001119/1.562, allocations: 0.8128 MB / 0.6709 GB, free: 8.797 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002892/1.562, allocations: 60 kB / 0.671 GB, free: 8.738 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000194/1.562, allocations: 428.7 kB / 0.6714 GB, free: 8.312 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003317/1.566, allocations: 1.294 MB / 0.6726 GB, free: 7.016 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003969/1.57, allocations: 2.039 MB / 0.6746 GB, free: 4.652 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003965/1.574, allocations: 1.658 MB / 0.6763 GB, free: 2.969 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.39e-05/1.574, allocations: 4 kB / 0.6763 GB, free: 2.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.0119/1.586, allocations: 4.319 MB / 0.6805 GB, free: 14.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.933e-05/1.586, allocations: 12 kB / 0.6805 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.981e-05/1.586, allocations: 24 kB / 0.6805 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00349/1.589, allocations: 0.7623 MB / 0.6813 GB, free: 13.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005336/1.595, allocations: 0.6396 MB / 0.6819 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3332/1.928, allocations: 13.35 MB / 0.6949 GB, free: 89.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004253/1.932, allocations: 161.2 kB / 0.6951 GB, free: 89.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007751/1.933, allocations: 117.9 kB / 0.6952 GB, free: 89.88 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.0008261/1.934, allocations: 276.5 kB / 0.6954 GB, free: 89.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/1.935, allocations: 329.7 kB / 0.6958 GB, free: 89.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/1.948, allocations: 4.115 MB / 0.6998 GB, free: 89.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.897e-05/1.948, allocations: 25.55 kB / 0.6998 GB, free: 89.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.744e-05/1.948, allocations: 11.94 kB / 0.6998 GB, free: 89.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.669e-05/1.948, allocations: 12.59 kB / 0.6998 GB, free: 89.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02924/1.978, allocations: 9.021 MB / 0.7086 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.023e-05/1.978, allocations: 4.312 kB / 0.7086 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003642/1.981, allocations: 386.5 kB / 0.709 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004532/1.986, allocations: 0.9187 MB / 0.7099 GB, free: 88.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006664/1.987, allocations: 65.58 kB / 0.71 GB, free: 88.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02171/2.008, allocations: 16.49 MB / 0.7261 GB, free: 78.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/2.008, allocations: 3.281 kB / 0.7261 GB, free: 78.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01636/2.025, allocations: 6.273 MB / 0.7322 GB, free: 77.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003205/2.028, allocations: 0.705 MB / 0.7329 GB, free: 76.94 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001424/2.03, allocations: 54.5 kB / 0.7329 GB, free: 76.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004088/2.034, allocations: 146 kB / 0.7331 GB, free: 76.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001107/2.035, allocations: 199.2 kB / 0.7333 GB, free: 76.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003367/2.035, allocations: 69.59 kB / 0.7333 GB, free: 76.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005698/2.041, allocations: 1.965 MB / 0.7353 GB, free: 76.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.374e-06/2.041, allocations: 0 / 0.7353 GB, free: 76.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006666/2.048, allocations: 1.017 MB / 0.7362 GB, free: 76.42 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.02233/2.07, allocations: 8.146 MB / 0.7442 GB, free: 71.85 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01887/2.089, allocations: 4.455 MB / 0.7486 GB, free: 69.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.487e-05/2.089, allocations: 0 / 0.7486 GB, free: 69.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0133/2.102, allocations: 2.994 MB / 0.7515 GB, free: 67.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01179/2.114, allocations: 0.8341 MB / 0.7523 GB, free: 67.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0331/2.147, allocations: 9.564 MB / 0.7616 GB, free: 63.79 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006997/2.154, allocations: 3.441 MB / 0.765 GB, free: 62.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006273/2.161, allocations: 1.966 MB / 0.7669 GB, free: 60.87 MB / 426.7 MB Notification: Performance of SimCode: time 3.647e-06/2.161, allocations: 0 / 0.7669 GB, free: 60.87 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.787/7.948, allocations: 320.8 MB / 1.08 GB, free: 119.2 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