Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_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 4.0.0+maint.om/package.mo): time 0.000974/0.0009739, allocations: 183.8 kB / 8.136 MB, free: 2.223 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.089/1.089, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.000904/0.0009043, allocations: 101.5 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08778/0.08871, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.2544, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.101/0.3554, allocations: 109.9 MB / 496.9 MB, free: 8.805 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.3556, allocations: 91.83 kB / 497 MB, free: 8.715 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.2756/0.6312, allocations: 67.97 MB / 0.5517 GB, free: 58.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.6312, allocations: 8 kB / 0.5517 GB, free: 58.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00146/0.6327, allocations: 447.1 kB / 0.5521 GB, free: 57.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00432/0.6371, allocations: 2.402 MB / 0.5545 GB, free: 55.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.132e-05/0.6372, allocations: 100 kB / 0.5546 GB, free: 55.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005231/0.6377, allocations: 183.9 kB / 0.5548 GB, free: 55.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004901/0.6426, allocations: 3.37 MB / 0.5581 GB, free: 51.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004939/0.6475, allocations: 3.858 MB / 0.5618 GB, free: 47.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.138e-05/0.6476, allocations: 11.91 kB / 0.5618 GB, free: 47.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.6479, allocations: 8 kB / 0.5618 GB, free: 47.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.221e-05/0.648, allocations: 126 kB / 0.562 GB, free: 47.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.664, allocations: 13.06 MB / 0.5747 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.6655, allocations: 1.325 MB / 0.576 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.6673, allocations: 1.588 MB / 0.5776 GB, free: 31.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002482/0.6675, allocations: 139.1 kB / 0.5777 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.6676, allocations: 56.47 kB / 0.5777 GB, free: 30.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=167): time 3.547e-06/0.6676, allocations: 0 / 0.5777 GB, free: 30.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=183): time 0.009209/0.6768, allocations: 6.398 MB / 0.584 GB, free: 24.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.155e-05/0.6768, allocations: 73.41 kB / 0.5841 GB, free: 24.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/0.6788, allocations: 1.739 MB / 0.5858 GB, free: 22.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.6789, allocations: 25.7 kB / 0.5858 GB, free: 22.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.6792, allocations: 1.125 MB / 0.5869 GB, free: 21.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002947/0.6795, allocations: 0.5811 MB / 0.5875 GB, free: 20.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.6796, allocations: 0 / 0.5875 GB, free: 20.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.45e-05/0.6797, allocations: 385.8 kB / 0.5878 GB, free: 20.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.6809, allocations: 1.085 MB / 0.5889 GB, free: 19.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.6822, allocations: 1.472 MB / 0.5903 GB, free: 17.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.6836, allocations: 1.302 MB / 0.5916 GB, free: 16.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.6836, allocations: 7.938 kB / 0.5916 GB, free: 16.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.004185/0.6878, allocations: 3.355 MB / 0.5949 GB, free: 13.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.6878, allocations: 4 kB / 0.5949 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.6879, allocations: 15.91 kB / 0.5949 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/0.6895, allocations: 0.7943 MB / 0.5957 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/0.6912, allocations: 447.4 kB / 0.5961 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006574/0.6978, allocations: 9.619 MB / 0.6055 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.6993, allocations: 75.89 kB / 0.6056 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.6994, allocations: 72 kB / 0.6056 GB, free: 1.445 MB / 378.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 (217): * Single equations (assignments): 210 * 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%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002778/0.6997, allocations: 160.7 kB / 0.6058 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003136/0.7, allocations: 225.2 kB / 0.606 GB, free: 1.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004704/0.7047, allocations: 3.159 MB / 0.6091 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.7048, allocations: 20 kB / 0.6091 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.7048, allocations: 12 kB / 0.6091 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/0.7048, allocations: 15.95 kB / 0.6091 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009922/0.7147, allocations: 6.336 MB / 0.6153 GB, free: 7.371 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.7147, allocations: 4.219 kB / 0.6153 GB, free: 7.367 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/0.7162, allocations: 307.5 kB / 0.6156 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002278/0.7185, allocations: 0.9056 MB / 0.6165 GB, free: 6.133 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.7186, allocations: 15.98 kB / 0.6165 GB, free: 6.117 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01137/0.73, allocations: 12.65 MB / 0.6289 GB, free: 8.664 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.73, allocations: 4 kB / 0.6289 GB, free: 8.66 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00687/0.7369, allocations: 4.919 MB / 0.6337 GB, free: 3.613 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008627/0.7455, allocations: 6.994 MB / 0.6405 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.7467, allocations: 0.5412 MB / 0.641 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003643/0.747, allocations: 16 kB / 0.641 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.7483, allocations: 87.91 kB / 0.6411 GB, free: 11.83 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002689/0.7486, allocations: 121.7 kB / 0.6412 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.7488, allocations: 51.98 kB / 0.6413 GB, free: 11.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001818/0.7506, allocations: 1.303 MB / 0.6426 GB, free: 10.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002482/0.7531, allocations: 0.6564 MB / 0.6432 GB, free: 9.68 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.0005279/0.7536, allocations: 332 kB / 0.6435 GB, free: 9.348 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004301/0.7579, allocations: 3.374 MB / 0.6468 GB, free: 5.883 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.7579, allocations: 0 / 0.6468 GB, free: 5.883 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00304/0.761, allocations: 2.318 MB / 0.6491 GB, free: 3.477 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/0.7631, allocations: 0.5032 MB / 0.6496 GB, free: 2.973 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1093/0.8724, allocations: 5.58 MB / 0.655 GB, free: 136.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002258/0.8747, allocations: 2.732 MB / 0.6577 GB, free: 135.7 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.8747, allocations: 3.594 kB / 0.6577 GB, free: 135.7 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1)