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"}) [: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.0009602/0.0009602, allocations: 181.5 kB / 8.134 MB, free: 2.215 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.088/1.088, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009158/0.0009158, allocations: 97.02 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08707/0.08802, allocations: 55.83 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.2555, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09777/0.3533, allocations: 103.4 MB / 490.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.3536, allocations: 91.88 kB / 490.5 MB, free: 15.18 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.2221/0.5756, allocations: 46.23 MB / 0.5242 GB, free: 85.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.5757, allocations: 12 kB / 0.5242 GB, free: 85.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007735/0.5764, allocations: 288.8 kB / 0.5245 GB, free: 84.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/0.5789, allocations: 1.554 MB / 0.526 GB, free: 83.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.825e-05/0.579, allocations: 64 kB / 0.5261 GB, free: 83.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002688/0.5793, allocations: 127.9 kB / 0.5262 GB, free: 83.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002881/0.5822, allocations: 2.058 MB / 0.5282 GB, free: 81.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003122/0.5853, allocations: 2.389 MB / 0.5305 GB, free: 78.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.475e-05/0.5854, allocations: 3.906 kB / 0.5305 GB, free: 78.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.5855, allocations: 7.938 kB / 0.5305 GB, free: 78.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.773e-05/0.5856, allocations: 91.88 kB / 0.5306 GB, free: 78.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0096/0.5952, allocations: 8.102 MB / 0.5385 GB, free: 70.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009118/0.5961, allocations: 0.8099 MB / 0.5393 GB, free: 69.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.5972, allocations: 0.9416 MB / 0.5402 GB, free: 68.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002185/0.5975, allocations: 134.1 kB / 0.5404 GB, free: 68.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.5975, allocations: 43.56 kB / 0.5404 GB, free: 68.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=107): time 2.224e-06/0.5975, allocations: 0 / 0.5404 GB, free: 68.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.006375/0.6039, allocations: 4.41 MB / 0.5447 GB, free: 63.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.812e-05/0.6039, allocations: 64.41 kB / 0.5448 GB, free: 63.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.605, allocations: 1.116 MB / 0.5459 GB, free: 62.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.147e-05/0.6051, allocations: 29.7 kB / 0.5459 GB, free: 62.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.6054, allocations: 0.7676 MB / 0.5467 GB, free: 61.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.6056, allocations: 409.9 kB / 0.547 GB, free: 61.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.72e-05/0.6056, allocations: 0 / 0.547 GB, free: 61.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.596e-05/0.6057, allocations: 357.9 kB / 0.5474 GB, free: 60.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007706/0.6065, allocations: 0.6989 MB / 0.5481 GB, free: 60.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008551/0.6074, allocations: 0.9877 MB / 0.549 GB, free: 59.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009152/0.6083, allocations: 0.8494 MB / 0.5499 GB, free: 58.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.6083, allocations: 0 / 0.5499 GB, free: 58.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.002743/0.611, allocations: 2.187 MB / 0.552 GB, free: 56.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/0.6111, allocations: 7.938 kB / 0.552 GB, free: 56.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.6111, allocations: 8 kB / 0.552 GB, free: 56.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008174/0.6119, allocations: 415.3 kB / 0.5524 GB, free: 55.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.6132, allocations: 335.5 kB / 0.5527 GB, free: 55.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003215/0.6164, allocations: 4.278 MB / 0.5569 GB, free: 50.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008396/0.6172, allocations: 48 kB / 0.557 GB, free: 50.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.6174, allocations: 63.91 kB / 0.557 GB, free: 50.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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.0001887/0.6175, allocations: 132.6 kB / 0.5571 GB, free: 50.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.6177, allocations: 150.2 kB / 0.5573 GB, free: 50.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/0.6204, allocations: 2.036 MB / 0.5593 GB, free: 48.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.6204, allocations: 12 kB / 0.5593 GB, free: 48.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.6205, allocations: 11.84 kB / 0.5593 GB, free: 48.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.6205, allocations: 7.969 kB / 0.5593 GB, free: 48.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005418/0.6259, allocations: 4.197 MB / 0.5634 GB, free: 44.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.6259, allocations: 0 / 0.5634 GB, free: 44.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009996/0.6269, allocations: 231.7 kB / 0.5636 GB, free: 43.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.628, allocations: 460.8 kB / 0.5641 GB, free: 43.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.996e-05/0.6281, allocations: 19.98 kB / 0.5641 GB, free: 43.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.6321, allocations: 5.732 MB / 0.5697 GB, free: 37.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.6321, allocations: 4 kB / 0.5697 GB, free: 37.31 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003376/0.6355, allocations: 3.241 MB / 0.5728 GB, free: 33.98 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004397/0.6399, allocations: 4.697 MB / 0.5774 GB, free: 29.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005697/0.6405, allocations: 391.1 kB / 0.5778 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.6408, allocations: 7.984 kB / 0.5778 GB, free: 28.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007845/0.6415, allocations: 51.95 kB / 0.5779 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.6417, allocations: 88.77 kB / 0.5779 GB, free: 28.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.952e-05/0.6418, allocations: 32 kB / 0.578 GB, free: 28.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008533/0.6427, allocations: 0.841 MB / 0.5788 GB, free: 27.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001706/0.6444, allocations: 432 kB / 0.5792 GB, free: 27.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (107): * Single equations (assignments): 103 * 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.0003663/0.6448, allocations: 276.9 kB / 0.5795 GB, free: 27.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002238/0.647, allocations: 2.127 MB / 0.5816 GB, free: 24.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.647, allocations: 8 kB / 0.5816 GB, free: 24.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.6486, allocations: 1.382 MB / 0.5829 GB, free: 23.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.6499, allocations: 319.3 kB / 0.5832 GB, free: 23.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005069/0.6549, allocations: 3.669 MB / 0.5868 GB, free: 19.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/0.6564, allocations: 1.993 MB / 0.5887 GB, free: 17.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6564, allocations: 0 / 0.5887 GB, free: 17.38 MB / 378.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)