Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",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 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 182 kB / 8.129 MB, free: 2.219 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.14/1.14, allocations: 221.4 MB / 229.9 MB, free: 3.25 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.001043/0.001043, allocations: 93.95 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08984/0.09092, allocations: 55.83 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1825/0.2734, allocations: 50.39 MB / 387 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1027/0.3762, allocations: 103.8 MB / 490.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.3764, allocations: 91.89 kB / 490.9 MB, free: 14.87 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.2377/0.6142, allocations: 42.83 MB / 0.5212 GB, free: 87.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.6142, allocations: 12 kB / 0.5212 GB, free: 87.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008872/0.6151, allocations: 269.1 kB / 0.5214 GB, free: 87.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/0.6178, allocations: 1.387 MB / 0.5228 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.42e-05/0.6179, allocations: 60 kB / 0.5229 GB, free: 86.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003266/0.6182, allocations: 119.9 kB / 0.523 GB, free: 86.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002736/0.6209, allocations: 1.734 MB / 0.5247 GB, free: 84.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002963/0.6239, allocations: 2.116 MB / 0.5267 GB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.816e-05/0.624, allocations: 4 kB / 0.5267 GB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.6241, allocations: 0 / 0.5267 GB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.105e-05/0.6242, allocations: 91.67 kB / 0.5268 GB, free: 82.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009958/0.6342, allocations: 7.512 MB / 0.5342 GB, free: 74.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009041/0.6351, allocations: 0.7214 MB / 0.5349 GB, free: 73.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.6362, allocations: 0.8187 MB / 0.5357 GB, free: 72.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002392/0.6365, allocations: 138 kB / 0.5358 GB, free: 72.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.6365, allocations: 43.56 kB / 0.5358 GB, free: 72.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=99): time 2.645e-06/0.6365, allocations: 0 / 0.5358 GB, free: 72.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=115): time 0.006465/0.643, allocations: 3.994 MB / 0.5397 GB, free: 68.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.232e-05/0.643, allocations: 60.41 kB / 0.5398 GB, free: 68.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.6442, allocations: 0.9219 MB / 0.5407 GB, free: 67.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.7e-05/0.6443, allocations: 25.7 kB / 0.5407 GB, free: 67.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.6445, allocations: 0.7393 MB / 0.5414 GB, free: 66.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.6447, allocations: 386.2 kB / 0.5418 GB, free: 66.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.6448, allocations: 0 / 0.5418 GB, free: 66.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.583e-05/0.6449, allocations: 357.9 kB / 0.5421 GB, free: 66.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007248/0.6456, allocations: 0.6209 MB / 0.5428 GB, free: 65.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008309/0.6465, allocations: 0.9483 MB / 0.5437 GB, free: 64.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009166/0.6474, allocations: 0.7714 MB / 0.5444 GB, free: 63.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.6474, allocations: 4 kB / 0.5444 GB, free: 63.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.002784/0.6502, allocations: 2.035 MB / 0.5464 GB, free: 61.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.6502, allocations: 7.938 kB / 0.5464 GB, free: 61.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.6503, allocations: 15.94 kB / 0.5464 GB, free: 61.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008628/0.6511, allocations: 419.4 kB / 0.5468 GB, free: 61.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.6524, allocations: 331.5 kB / 0.5472 GB, free: 60.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003489/0.6559, allocations: 4.272 MB / 0.5513 GB, free: 56.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009693/0.6569, allocations: 51.92 kB / 0.5514 GB, free: 56.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.657, allocations: 55.98 kB / 0.5514 GB, free: 56.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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.0002153/0.6572, allocations: 144.5 kB / 0.5516 GB, free: 55.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000254/0.6575, allocations: 134.3 kB / 0.5517 GB, free: 55.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002668/0.6602, allocations: 1.816 MB / 0.5535 GB, free: 54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.6602, allocations: 12 kB / 0.5535 GB, free: 53.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.6602, allocations: 3.984 kB / 0.5535 GB, free: 53.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.6602, allocations: 11.97 kB / 0.5535 GB, free: 53.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005498/0.6657, allocations: 3.728 MB / 0.5571 GB, free: 50.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.6658, allocations: 4.281 kB / 0.5571 GB, free: 50.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009983/0.6668, allocations: 223.7 kB / 0.5574 GB, free: 49.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00112/0.6679, allocations: 464.3 kB / 0.5578 GB, free: 49.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.43e-05/0.668, allocations: 15.97 kB / 0.5578 GB, free: 49.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004135/0.6721, allocations: 5.731 MB / 0.5634 GB, free: 43.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.6722, allocations: 4 kB / 0.5634 GB, free: 43.41 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003212/0.6754, allocations: 2.85 MB / 0.5662 GB, free: 40.47 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00412/0.6795, allocations: 4.149 MB / 0.5703 GB, free: 36.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006906/0.6802, allocations: 343.3 kB / 0.5706 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003506/0.6806, allocations: 15.98 kB / 0.5706 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008858/0.6815, allocations: 39.95 kB / 0.5706 GB, free: 35.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.6816, allocations: 68.84 kB / 0.5707 GB, free: 35.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.398e-05/0.6817, allocations: 35.98 kB / 0.5707 GB, free: 35.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001037/0.6828, allocations: 0.689 MB / 0.5714 GB, free: 35.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002084/0.6849, allocations: 404 kB / 0.5718 GB, free: 34.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 95 * 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.0005217/0.6854, allocations: 281.5 kB / 0.5721 GB, free: 34.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002378/0.6878, allocations: 1.952 MB / 0.574 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6878, allocations: 4 kB / 0.574 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.6894, allocations: 1.249 MB / 0.5752 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.6908, allocations: 290 kB / 0.5755 GB, free: 30.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005892/0.6967, allocations: 3.378 MB / 0.5788 GB, free: 27.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/0.6982, allocations: 1.801 MB / 0.5805 GB, free: 25.48 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.6982, allocations: 0 / 0.5805 GB, free: 25.48 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1)