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.000931/0.000931, allocations: 174.6 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0008286/0.0008286, allocations: 89.22 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.964e-05/1.966e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 50.43 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4783, allocations: 109.2 MB / 496.8 MB, free: 1.387 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.4787, allocations: 88.98 kB / 496.9 MB, free: 1.301 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.149/0.6277, allocations: 51.8 MB / 0.5358 GB, free: 13.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.6277, allocations: 0 / 0.5358 GB, free: 13.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003033/0.628, allocations: 67.92 kB / 0.5359 GB, free: 13.11 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.006959/0.635, allocations: 2.432 MB / 0.5382 GB, free: 10.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.635, allocations: 8.031 kB / 0.5383 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001691/0.6367, allocations: 336.3 kB / 0.5386 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005076/0.6419, allocations: 1.767 MB / 0.5403 GB, free: 8.457 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.642, allocations: 64 kB / 0.5404 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007539/0.6428, allocations: 119.9 kB / 0.5405 GB, free: 8.277 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005023/0.6478, allocations: 1.945 MB / 0.5424 GB, free: 6.324 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005774/0.6536, allocations: 2.299 MB / 0.5446 GB, free: 3.902 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.084e-05/0.6537, allocations: 11.91 kB / 0.5446 GB, free: 3.891 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003219/0.654, allocations: 0 / 0.5446 GB, free: 3.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001091/0.6542, allocations: 87.88 kB / 0.5447 GB, free: 3.805 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2677/0.9219, allocations: 7.923 MB / 0.5525 GB, free: 103 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.9246, allocations: 1.538 MB / 0.554 GB, free: 102.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.9259, allocations: 0.8692 MB / 0.5548 GB, free: 102.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003378/0.9263, allocations: 139.3 kB / 0.5549 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.034e-05/0.9263, allocations: 46.73 kB / 0.555 GB, free: 102.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.878e-06/0.9263, allocations: 3.188 kB / 0.555 GB, free: 102.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=135): time 0.01063/0.937, allocations: 4.801 MB / 0.5597 GB, free: 101.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.9371, allocations: 72.06 kB / 0.5597 GB, free: 101.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003214/0.9403, allocations: 1.654 MB / 0.5614 GB, free: 101.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002066/0.9405, allocations: 26.92 kB / 0.5614 GB, free: 101.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009665/0.9415, allocations: 1.099 MB / 0.5625 GB, free: 101.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/0.942, allocations: 450.3 kB / 0.5629 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-05/0.942, allocations: 0 / 0.5629 GB, free: 101.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.9422, allocations: 363.8 kB / 0.5632 GB, free: 100.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.9433, allocations: 0.6843 MB / 0.5639 GB, free: 100.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.9446, allocations: 0.9231 MB / 0.5648 GB, free: 100.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.9461, allocations: 0.8188 MB / 0.5656 GB, free: 100.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.9461, allocations: 5.438 kB / 0.5656 GB, free: 100.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00511/0.9512, allocations: 2.569 MB / 0.5681 GB, free: 100.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.9513, allocations: 8.953 kB / 0.5681 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-05/0.9513, allocations: 7.031 kB / 0.5681 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002316/0.9537, allocations: 0.8351 MB / 0.5689 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.9548, allocations: 272.5 kB / 0.5692 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/0.9658, allocations: 8.896 MB / 0.5779 GB, free: 96.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.9679, allocations: 68.05 kB / 0.578 GB, free: 96.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004096/0.9683, allocations: 54.84 kB / 0.578 GB, free: 96.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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.0005441/0.9689, allocations: 131.9 kB / 0.5781 GB, free: 96.12 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004119/0.973, allocations: 2.184 MB / 0.5803 GB, free: 95.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009811/0.974, allocations: 189.7 kB / 0.5805 GB, free: 95.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004627/0.9787, allocations: 2.35 MB / 0.5827 GB, free: 94.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.9787, allocations: 13.59 kB / 0.5828 GB, free: 94.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.882e-05/0.9787, allocations: 9.547 kB / 0.5828 GB, free: 94.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.9787, allocations: 7.594 kB / 0.5828 GB, free: 94.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009011/0.9878, allocations: 4.596 MB / 0.5873 GB, free: 92.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/0.9878, allocations: 6.969 kB / 0.5873 GB, free: 92.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009836/0.9888, allocations: 213.5 kB / 0.5875 GB, free: 92.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.9906, allocations: 0.7007 MB / 0.5882 GB, free: 92.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.9907, allocations: 15.19 kB / 0.5882 GB, free: 92.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007973/0.9987, allocations: 8.13 MB / 0.5961 GB, free: 86.79 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.9987, allocations: 3.281 kB / 0.5961 GB, free: 86.79 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005259/1.004, allocations: 3.427 MB / 0.5995 GB, free: 85.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/1.005, allocations: 462.8 kB / 0.5999 GB, free: 85.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005565/1.006, allocations: 8.875 kB / 0.5999 GB, free: 85.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/1.007, allocations: 71.86 kB / 0.6 GB, free: 85.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/1.007, allocations: 116.7 kB / 0.6001 GB, free: 85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/1.008, allocations: 37.53 kB / 0.6001 GB, free: 85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002207/1.01, allocations: 1.264 MB / 0.6014 GB, free: 84.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.01, allocations: 0 / 0.6014 GB, free: 84.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002547/1.012, allocations: 0.5159 MB / 0.6019 GB, free: 84.51 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (94): * Single equations (assignments): 88 * 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.006448/1.019, allocations: 4.775 MB / 0.6065 GB, free: 82.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003716/1.023, allocations: 2.287 MB / 0.6088 GB, free: 81.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.023, allocations: 0 / 0.6088 GB, free: 81.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002152/1.025, allocations: 1.614 MB / 0.6103 GB, free: 80.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/1.027, allocations: 333.6 kB / 0.6107 GB, free: 80.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0099/1.037, allocations: 4.809 MB / 0.6154 GB, free: 78.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002019/1.039, allocations: 2.014 MB / 0.6173 GB, free: 77.42 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001493/1.04, allocations: 380.8 kB / 0.6177 GB, free: 77.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/1.042, allocations: 0.9498 MB / 0.6186 GB, free: 76.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/1.042, allocations: 8 kB / 0.6186 GB, free: 76.31 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08748/1.129, allocations: 44.26 MB / 0.6618 GB, free: 39.71 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/1.129, allocations: 192.6 kB / 0.662 GB, free: 39.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.116/4.246, allocations: 0 / 0.662 GB, free: 39.52 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)