Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 221.3 MB / 235.5 MB, free: 2.879 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008491/0.0008495, allocations: 94.94 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.174e-05/4.177e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3389/0.4418, allocations: 104.2 MB / 498.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.4421, allocations: 85.52 kB / 498.6 MB, free: 15.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1208/0.5629, allocations: 44.73 MB / 0.5306 GB, free: 2.098 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.5629, allocations: 4 kB / 0.5306 GB, free: 2.094 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001841/0.5631, allocations: 55.94 kB / 0.5307 GB, free: 2.039 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.004947/0.568, allocations: 2.2 MB / 0.5328 GB, free: 15.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.5681, allocations: 8.031 kB / 0.5328 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000597/0.5687, allocations: 303.3 kB / 0.5331 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009483/0.5697, allocations: 288.8 kB / 0.5334 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.5727, allocations: 1.531 MB / 0.5349 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.5729, allocations: 160 kB / 0.535 GB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003708/0.5733, allocations: 207.9 kB / 0.5352 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004706/0.578, allocations: 2.637 MB / 0.5378 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-05/0.578, allocations: 7.953 kB / 0.5378 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002017/0.5783, allocations: 83.98 kB / 0.5379 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.526e-05/0.5784, allocations: 91.94 kB / 0.538 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003656/0.582, allocations: 2.132 MB / 0.5401 GB, free: 8.141 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2344/0.8164, allocations: 8.427 MB / 0.5483 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002602/0.8191, allocations: 1.774 MB / 0.55 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.8206, allocations: 0.9712 MB / 0.551 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003015/0.821, allocations: 133.1 kB / 0.5511 GB, free: 103.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.821, allocations: 42.91 kB / 0.5511 GB, free: 103.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=107): time 3.026e-06/0.821, allocations: 4.781 kB / 0.5511 GB, free: 103.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=123): time 0.01178/0.8328, allocations: 5.228 MB / 0.5563 GB, free: 102.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.8329, allocations: 65.23 kB / 0.5563 GB, free: 102.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002244/0.8351, allocations: 1.305 MB / 0.5576 GB, free: 102.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.8352, allocations: 46.7 kB / 0.5576 GB, free: 102.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008132/0.8361, allocations: 0.9756 MB / 0.5586 GB, free: 102.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00036/0.8364, allocations: 431.2 kB / 0.559 GB, free: 102 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.312e-05/0.8365, allocations: 32.09 kB / 0.559 GB, free: 102 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.8366, allocations: 361.1 kB / 0.5594 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.8379, allocations: 0.6957 MB / 0.5601 GB, free: 101.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.8392, allocations: 1.005 MB / 0.561 GB, free: 101.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.8405, allocations: 0.845 MB / 0.5619 GB, free: 101.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.8405, allocations: 3.516 kB / 0.5619 GB, free: 101.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004026/0.8446, allocations: 2.272 MB / 0.5641 GB, free: 101.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.8446, allocations: 8.25 kB / 0.5641 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.8446, allocations: 13.47 kB / 0.5641 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.8457, allocations: 404.7 kB / 0.5645 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.847, allocations: 340.5 kB / 0.5648 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00447/0.8515, allocations: 4.633 MB / 0.5693 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.8527, allocations: 95.06 kB / 0.5694 GB, free: 98.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.8529, allocations: 58.36 kB / 0.5695 GB, free: 98.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (156): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002529/0.8531, allocations: 187.9 kB / 0.5697 GB, free: 98.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002926/0.8534, allocations: 158.3 kB / 0.5698 GB, free: 98.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003485/0.8569, allocations: 2.098 MB / 0.5719 GB, free: 98.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.8569, allocations: 16.33 kB / 0.5719 GB, free: 98.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.8569, allocations: 4.031 kB / 0.5719 GB, free: 98.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.857, allocations: 7.781 kB / 0.5719 GB, free: 98.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006394/0.8634, allocations: 4.518 MB / 0.5763 GB, free: 96.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.8634, allocations: 7.344 kB / 0.5763 GB, free: 96.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008878/0.8643, allocations: 237.9 kB / 0.5765 GB, free: 96.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.8653, allocations: 465.1 kB / 0.577 GB, free: 96.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.619e-05/0.8654, allocations: 37.64 kB / 0.577 GB, free: 96.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004539/0.87, allocations: 6.178 MB / 0.583 GB, free: 91.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.87, allocations: 3.969 kB / 0.583 GB, free: 91.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003892/0.8739, allocations: 3.286 MB / 0.5863 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007726/0.8747, allocations: 401.5 kB / 0.5866 GB, free: 89.75 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000199/0.8749, allocations: 35.59 kB / 0.5867 GB, free: 89.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008018/0.8757, allocations: 83.72 kB / 0.5868 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.8759, allocations: 108.2 kB / 0.5869 GB, free: 89.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-05/0.876, allocations: 41.31 kB / 0.5869 GB, free: 89.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001213/0.8772, allocations: 1.008 MB / 0.5879 GB, free: 89.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8773, allocations: 0 / 0.5879 GB, free: 89.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001439/0.8787, allocations: 491.4 kB / 0.5884 GB, free: 89.24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.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 (108): * Single equations (assignments): 104 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004115/0.8828, allocations: 4.775 MB / 0.593 GB, free: 86.44 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002813/0.8856, allocations: 2.203 MB / 0.5952 GB, free: 85.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.8857, allocations: 0 / 0.5952 GB, free: 85.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.8874, allocations: 1.477 MB / 0.5966 GB, free: 84.67 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.8894, allocations: 417.7 kB / 0.597 GB, free: 84.57 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006584/0.896, allocations: 4.3 MB / 0.6012 GB, free: 82.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.8972, allocations: 1.856 MB / 0.603 GB, free: 81.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001213/0.8984, allocations: 399.4 kB / 0.6034 GB, free: 81.85 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008382/0.8992, allocations: 0.7924 MB / 0.6042 GB, free: 81.22 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/0.8992, allocations: 0 / 0.6042 GB, free: 81.22 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05731/0.9565, allocations: 43.03 MB / 0.6462 GB, free: 52.83 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001235/0.9567, allocations: 182.6 kB / 0.6464 GB, free: 52.61 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.967/3.924, allocations: 0 / 0.6464 GB, free: 52.61 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat