Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.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.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",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.001578/0.001578, allocations: 174.9 kB / 8.473 MB, free: 1.871 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.088/1.088, 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.0008367/0.0008367, allocations: 83.28 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.153/0.1539, allocations: 52.98 MB / 315.1 MB, free: 41.37 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06413/0.218, allocations: 47.57 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2276/0.4457, allocations: 109.4 MB / 472 MB, free: 15.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.4459, allocations: 87.62 kB / 472.1 MB, free: 15.83 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.1668/0.6127, allocations: 67.58 MB / 0.527 GB, free: 3.184 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.6127, allocations: 8 kB / 0.527 GB, free: 3.176 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001875/0.6146, allocations: 455.1 kB / 0.5275 GB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005097/0.6198, allocations: 2.391 MB / 0.5298 GB, free: 292 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.763e-05/0.6199, allocations: 100 kB / 0.5299 GB, free: 192 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004011/0.6203, allocations: 187.9 kB / 0.5301 GB, free: 4 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00521/0.6255, allocations: 3.378 MB / 0.5334 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005629/0.6311, allocations: 3.857 MB / 0.5372 GB, free: 8.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.652e-05/0.6312, allocations: 7.922 kB / 0.5372 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002715/0.6315, allocations: 4 kB / 0.5372 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.6316, allocations: 130 kB / 0.5373 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01876/0.6504, allocations: 13.08 MB / 0.5501 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.6521, allocations: 1.322 MB / 0.5514 GB, free: 9.703 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00211/0.6543, allocations: 1.592 MB / 0.5529 GB, free: 8.105 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002928/0.6546, allocations: 143 kB / 0.553 GB, free: 7.949 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.6546, allocations: 52.56 kB / 0.5531 GB, free: 7.887 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 3.597e-06/0.6546, allocations: 0 / 0.5531 GB, free: 7.887 MB / 410.7 MB Notification: Performance of matching and sorting (n=183): time 0.01074/0.6654, allocations: 6.431 MB / 0.5594 GB, free: 1.387 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.6654, allocations: 73.41 kB / 0.5594 GB, free: 1.301 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002377/0.6678, allocations: 1.735 MB / 0.5611 GB, free: 15.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.6679, allocations: 25.7 kB / 0.5612 GB, free: 15.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005702/0.6685, allocations: 1.117 MB / 0.5623 GB, free: 14.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004159/0.6689, allocations: 0.585 MB / 0.5628 GB, free: 13.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.6691, allocations: 4 kB / 0.5628 GB, free: 13.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.6692, allocations: 385.9 kB / 0.5632 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.6706, allocations: 1.085 MB / 0.5643 GB, free: 12.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.6723, allocations: 1.475 MB / 0.5657 GB, free: 10.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/0.674, allocations: 1.298 MB / 0.567 GB, free: 9.379 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.674, allocations: 4 kB / 0.567 GB, free: 9.375 MB / 426.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.005028/0.679, allocations: 3.378 MB / 0.5703 GB, free: 5.965 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.679, allocations: 4 kB / 0.5703 GB, free: 5.961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.6791, allocations: 12 kB / 0.5703 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001916/0.681, allocations: 0.8179 MB / 0.5711 GB, free: 5.105 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001862/0.6829, allocations: 451.4 kB / 0.5715 GB, free: 4.664 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1093/0.7921, allocations: 10.13 MB / 0.5814 GB, free: 140.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.7937, allocations: 69.69 kB / 0.5815 GB, free: 140.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.7939, allocations: 72.31 kB / 0.5815 GB, free: 140.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 207 * 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: 5 * 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: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003121/0.7942, allocations: 160.7 kB / 0.5817 GB, free: 140.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/0.7945, allocations: 222 kB / 0.5819 GB, free: 140.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004201/0.7987, allocations: 3.177 MB / 0.585 GB, free: 140 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.7988, allocations: 19.53 kB / 0.585 GB, free: 140 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.7988, allocations: 3.875 kB / 0.585 GB, free: 140 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.7988, allocations: 11.3 kB / 0.585 GB, free: 140 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008287/0.8071, allocations: 6.487 MB / 0.5914 GB, free: 139.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.8071, allocations: 0 / 0.5914 GB, free: 139.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/0.8084, allocations: 305.2 kB / 0.5917 GB, free: 139.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001993/0.8104, allocations: 0.9055 MB / 0.5925 GB, free: 139.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.8105, allocations: 21.11 kB / 0.5926 GB, free: 139.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008436/0.819, allocations: 12.66 MB / 0.6049 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.819, allocations: 3.875 kB / 0.6049 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005322/0.8243, allocations: 4.926 MB / 0.6097 GB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006684/0.831, allocations: 6.982 MB / 0.6166 GB, free: 129.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009231/0.832, allocations: 0.5487 MB / 0.6171 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003544/0.8323, allocations: 13.2 kB / 0.6171 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.8335, allocations: 88.86 kB / 0.6172 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.8338, allocations: 122.2 kB / 0.6173 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.8339, allocations: 49.08 kB / 0.6174 GB, free: 129.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001426/0.8353, allocations: 1.309 MB / 0.6186 GB, free: 129.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002382/0.8377, allocations: 0.6521 MB / 0.6193 GB, free: 129.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * 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: 7 * 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: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004457/0.8382, allocations: 334.3 kB / 0.6196 GB, free: 129.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003401/0.8416, allocations: 3.38 MB / 0.6229 GB, free: 128.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8416, allocations: 1.875 kB / 0.6229 GB, free: 128.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/0.844, allocations: 2.324 MB / 0.6252 GB, free: 126.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.8458, allocations: 496.8 kB / 0.6256 GB, free: 126.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007532/0.8534, allocations: 5.574 MB / 0.6311 GB, free: 124.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002174/0.8555, allocations: 2.734 MB / 0.6338 GB, free: 123.8 MB / 426.7 MB Notification: Performance of SimCode: time 3.9e-07/0.8556, allocations: 0 / 0.6338 GB, free: 123.8 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe 2>&1)