Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009778/0.0009777, allocations: 175.3 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.057/1.057, allocations: 205.2 MB / 214.1 MB, free: 5.082 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.0009378/0.0009378, allocations: 82.31 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1442/0.1452, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05998/0.2052, allocations: 47.57 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/0.4215, allocations: 108.3 MB / 470.9 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4217, allocations: 93.69 kB / 471 MB, free: 0.7891 MB / 314.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.143/0.5648, allocations: 53.66 MB / 0.5124 GB, free: 2.328 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.5648, allocations: 12 kB / 0.5124 GB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001207/0.566, allocations: 328.3 kB / 0.5127 GB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003932/0.57, allocations: 1.783 MB / 0.5144 GB, free: 160 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.342e-05/0.5701, allocations: 67.94 kB / 0.5145 GB, free: 92 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004562/0.5706, allocations: 124 kB / 0.5146 GB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003617/0.5742, allocations: 1.992 MB / 0.5166 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003915/0.5781, allocations: 2.338 MB / 0.5189 GB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.037e-05/0.5782, allocations: 0 / 0.5189 GB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001872/0.5784, allocations: 4 kB / 0.5189 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.583e-05/0.5785, allocations: 95.83 kB / 0.5189 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/0.5917, allocations: 7.984 MB / 0.5267 GB, free: 3.238 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.5933, allocations: 0.9086 MB / 0.5276 GB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001256/0.5946, allocations: 0.8901 MB / 0.5285 GB, free: 1.434 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003065/0.5949, allocations: 142 kB / 0.5286 GB, free: 1.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.595, allocations: 43.56 kB / 0.5287 GB, free: 1.227 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.266e-06/0.595, allocations: 0 / 0.5287 GB, free: 1.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.009406/0.6044, allocations: 4.84 MB / 0.5334 GB, free: 12.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.6045, allocations: 64.72 kB / 0.5335 GB, free: 12.23 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002609/0.6071, allocations: 1.677 MB / 0.5351 GB, free: 10.55 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.797e-05/0.6072, allocations: 29.7 kB / 0.5351 GB, free: 10.51 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/0.6077, allocations: 0.7903 MB / 0.5359 GB, free: 9.707 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003794/0.608, allocations: 449.2 kB / 0.5363 GB, free: 9.262 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.792e-05/0.6081, allocations: 3.938 kB / 0.5363 GB, free: 9.258 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.6083, allocations: 365.9 kB / 0.5367 GB, free: 8.895 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009866/0.6093, allocations: 0.7067 MB / 0.5374 GB, free: 8.188 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.6104, allocations: 0.9471 MB / 0.5383 GB, free: 7.148 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.6116, allocations: 0.8495 MB / 0.5391 GB, free: 6.301 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.6116, allocations: 0 / 0.5391 GB, free: 6.301 MB / 394.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004462/0.6161, allocations: 2.599 MB / 0.5417 GB, free: 3.688 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.6161, allocations: 4 kB / 0.5417 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.6162, allocations: 11.98 kB / 0.5417 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/0.6183, allocations: 0.8386 MB / 0.5425 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.6195, allocations: 271.6 kB / 0.5428 GB, free: 2.562 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/0.6303, allocations: 8.441 MB / 0.551 GB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.6314, allocations: 55.92 kB / 0.5511 GB, free: 9.816 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.6316, allocations: 56.05 kB / 0.5511 GB, free: 9.762 MB / 410.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.000238/0.6318, allocations: 132.7 kB / 0.5512 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003297/0.6322, allocations: 189.7 kB / 0.5514 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004066/0.6362, allocations: 2.392 MB / 0.5538 GB, free: 7.016 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.6363, allocations: 16 kB / 0.5538 GB, free: 7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.6363, allocations: 4 kB / 0.5538 GB, free: 6.996 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.6363, allocations: 11.91 kB / 0.5538 GB, free: 6.984 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007685/0.644, allocations: 4.652 MB / 0.5583 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.644, allocations: 4 kB / 0.5583 GB, free: 2.254 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.6451, allocations: 211.9 kB / 0.5585 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001898/0.647, allocations: 0.7012 MB / 0.5592 GB, free: 1.336 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.6471, allocations: 20.16 kB / 0.5592 GB, free: 1.316 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008339/0.6555, allocations: 7.853 MB / 0.5669 GB, free: 9.109 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.6555, allocations: 4 kB / 0.5669 GB, free: 9.105 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004911/0.6604, allocations: 3.512 MB / 0.5703 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1036/0.764, allocations: 7.16 MB / 0.5773 GB, free: 159 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009486/0.765, allocations: 461.1 kB / 0.5778 GB, free: 158.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002994/0.7653, allocations: 7.844 kB / 0.5778 GB, free: 158.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.7663, allocations: 63.59 kB / 0.5778 GB, free: 158.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.7665, allocations: 79.91 kB / 0.5779 GB, free: 158.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.729e-05/0.7666, allocations: 42.45 kB / 0.578 GB, free: 158.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001476/0.7681, allocations: 1.283 MB / 0.5792 GB, free: 158.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002187/0.7703, allocations: 0.5273 MB / 0.5797 GB, free: 158.8 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.0008467/0.7712, allocations: 497.2 kB / 0.5802 GB, free: 158.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002852/0.774, allocations: 2.211 MB / 0.5824 GB, free: 158.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.774, allocations: 0 / 0.5824 GB, free: 158.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.7759, allocations: 1.542 MB / 0.5839 GB, free: 157.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.7773, allocations: 312.5 kB / 0.5842 GB, free: 157.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006056/0.7834, allocations: 4.35 MB / 0.5884 GB, free: 157 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001613/0.785, allocations: 2.147 MB / 0.5905 GB, free: 156.3 MB / 426.7 MB Notification: Performance of SimCode: time 3.8e-07/0.785, allocations: 0 / 0.5905 GB, free: 156.3 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1)