Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",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.001954/0.001954, allocations: 174.8 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.468/1.468, allocations: 221.3 MB / 235.5 MB, free: 2.918 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.0008498/0.0008499, allocations: 98.77 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.075e-05, allocations: 7.984 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 50.41 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3411/0.4438, allocations: 109.9 MB / 0.4924 GB, free: 9.547 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.4441, allocations: 91.94 kB / 0.4925 GB, free: 9.457 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1422/0.5863, allocations: 52.41 MB / 0.5437 GB, free: 4.703 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5864, allocations: 0 / 0.5437 GB, free: 4.703 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001947/0.5866, allocations: 59.92 kB / 0.5438 GB, free: 4.645 MB / 426.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.006797/0.5934, allocations: 2.436 MB / 0.5461 GB, free: 2.145 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.5934, allocations: 12.03 kB / 0.5461 GB, free: 2.133 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009365/0.5944, allocations: 347.1 kB / 0.5465 GB, free: 1.777 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/0.5955, allocations: 332.3 kB / 0.5468 GB, free: 1.449 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2519/0.8474, allocations: 1.766 MB / 0.5485 GB, free: 101.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.8476, allocations: 155.6 kB / 0.5487 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006576/0.8483, allocations: 214.5 kB / 0.5489 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004803/0.8531, allocations: 2.625 MB / 0.5514 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.762e-05/0.8532, allocations: 7.578 kB / 0.5514 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001925/0.8534, allocations: 85.64 kB / 0.5515 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.8535, allocations: 90.2 kB / 0.5516 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004726/0.8583, allocations: 2.071 MB / 0.5536 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02695/0.8852, allocations: 8.395 MB / 0.5618 GB, free: 99.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00504/0.8903, allocations: 1.589 MB / 0.5634 GB, free: 98.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002842/0.8932, allocations: 0.9721 MB / 0.5643 GB, free: 98.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004506/0.8937, allocations: 144 kB / 0.5645 GB, free: 98.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.8938, allocations: 46.28 kB / 0.5645 GB, free: 98.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 7.013e-06/0.8938, allocations: 1.375 kB / 0.5645 GB, free: 98.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=135): time 0.01717/0.911, allocations: 5.029 MB / 0.5694 GB, free: 97.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.9111, allocations: 65.59 kB / 0.5695 GB, free: 97.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005256/0.9164, allocations: 1.864 MB / 0.5713 GB, free: 96.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.9166, allocations: 46.89 kB / 0.5713 GB, free: 96.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.9178, allocations: 1.11 MB / 0.5724 GB, free: 96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005551/0.9183, allocations: 471.2 kB / 0.5729 GB, free: 95.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.9185, allocations: 27.09 kB / 0.5729 GB, free: 95.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.9187, allocations: 365 kB / 0.5733 GB, free: 95.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00162/0.9203, allocations: 0.7047 MB / 0.5739 GB, free: 95.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/0.9222, allocations: 0.9636 MB / 0.5749 GB, free: 94.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002017/0.9242, allocations: 0.847 MB / 0.5757 GB, free: 94.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/0.9242, allocations: 0 / 0.5757 GB, free: 94.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.007584/0.9318, allocations: 2.713 MB / 0.5784 GB, free: 93.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.9319, allocations: 14.72 kB / 0.5784 GB, free: 93.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.522e-05/0.9319, allocations: 10.88 kB / 0.5784 GB, free: 93.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003674/0.9356, allocations: 0.8347 MB / 0.5792 GB, free: 93.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.9377, allocations: 275.7 kB / 0.5795 GB, free: 93.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01856/0.9563, allocations: 9.29 MB / 0.5885 GB, free: 87.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003094/0.9594, allocations: 102.1 kB / 0.5886 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005188/0.96, allocations: 53.36 kB / 0.5887 GB, free: 87.76 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008322/0.9609, allocations: 179.8 kB / 0.5889 GB, free: 87.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001423/0.9624, allocations: 201.5 kB / 0.589 GB, free: 87.51 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008051/0.9704, allocations: 2.468 MB / 0.5915 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.9705, allocations: 13.75 kB / 0.5915 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.576e-05/0.9706, allocations: 3.625 kB / 0.5915 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.873e-05/0.9706, allocations: 11.11 kB / 0.5915 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/0.9871, allocations: 5.008 MB / 0.5964 GB, free: 84.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.117e-05/0.9871, allocations: 6.062 kB / 0.5964 GB, free: 84.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001766/0.9889, allocations: 218.3 kB / 0.5966 GB, free: 84.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003325/0.9923, allocations: 0.7031 MB / 0.5973 GB, free: 84.45 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000228/0.9925, allocations: 41.92 kB / 0.5973 GB, free: 84.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01345/1.006, allocations: 8.451 MB / 0.6056 GB, free: 78.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/1.006, allocations: 6.344 kB / 0.6056 GB, free: 78.58 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005446/1.012, allocations: 3.599 MB / 0.6091 GB, free: 76.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/1.013, allocations: 482.5 kB / 0.6096 GB, free: 76.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/1.013, allocations: 29.11 kB / 0.6096 GB, free: 76.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009436/1.014, allocations: 95.62 kB / 0.6097 GB, free: 76.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002791/1.014, allocations: 108.9 kB / 0.6098 GB, free: 76.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.131e-05/1.014, allocations: 45.8 kB / 0.6098 GB, free: 76.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00185/1.016, allocations: 1.448 MB / 0.6112 GB, free: 76.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.016, allocations: 3.781 kB / 0.6112 GB, free: 76.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002013/1.018, allocations: 0.6021 MB / 0.6118 GB, free: 75.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005824/1.024, allocations: 5.097 MB / 0.6168 GB, free: 73.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003368/1.027, allocations: 2.376 MB / 0.6191 GB, free: 71.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/1.027, allocations: 3.938 kB / 0.6191 GB, free: 71.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002154/1.03, allocations: 1.686 MB / 0.6208 GB, free: 70.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/1.032, allocations: 414.2 kB / 0.6212 GB, free: 69.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007282/1.039, allocations: 4.99 MB / 0.626 GB, free: 65.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/1.04, allocations: 2.014 MB / 0.628 GB, free: 63.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001154/1.041, allocations: 405.4 kB / 0.6284 GB, free: 63.51 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000942/1.042, allocations: 0.9557 MB / 0.6293 GB, free: 62.64 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/1.042, allocations: 0 / 0.6293 GB, free: 62.64 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07302/1.115, allocations: 51.85 MB / 0.68 GB, free: 17.03 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/1.116, allocations: 230.9 kB / 0.6802 GB, free: 16.72 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.246/4.362, allocations: 7.938 kB / 0.6802 GB, free: 16.71 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1)