Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.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_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",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.0009342/0.0009342, allocations: 175 kB / 8.473 MB, free: 1.879 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.075/1.075, allocations: 205.2 MB / 214.1 MB, free: 5.078 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.0007767/0.0007767, allocations: 82.27 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.158/0.1588, allocations: 52.98 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06324/0.222, allocations: 47.58 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2171/0.4391, allocations: 104 MB / 466.6 MB, free: 4.059 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.4394, allocations: 85.42 kB / 466.7 MB, free: 4.047 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: 592 * Number of variables: 592 Notification: Performance of Generate backend data structure: time 0.1265/0.5659, allocations: 50.83 MB / 0.5054 GB, free: 9.387 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.5659, allocations: 8 kB / 0.5054 GB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.5671, allocations: 328.4 kB / 0.5057 GB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00373/0.5708, allocations: 1.744 MB / 0.5074 GB, free: 7.254 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.5709, allocations: 72 kB / 0.5075 GB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005044/0.5714, allocations: 139.9 kB / 0.5076 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004321/0.5758, allocations: 2.446 MB / 0.51 GB, free: 4.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004724/0.5805, allocations: 2.797 MB / 0.5127 GB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.413e-05/0.5806, allocations: 11.84 kB / 0.5127 GB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002082/0.5808, allocations: 4 kB / 0.5127 GB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.98e-05/0.5809, allocations: 104.4 kB / 0.5128 GB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01355/0.5945, allocations: 9.549 MB / 0.5222 GB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.5958, allocations: 0.9902 MB / 0.5231 GB, free: 6.734 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.5974, allocations: 1.168 MB / 0.5243 GB, free: 5.566 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/0.5976, allocations: 134.4 kB / 0.5244 GB, free: 5.414 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.5977, allocations: 51.81 kB / 0.5245 GB, free: 5.355 MB / 378.7 MB Notification: Performance of pre-optimization done (n=129): time 3.276e-06/0.5977, allocations: 0 / 0.5245 GB, free: 5.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=145): time 0.009625/0.6073, allocations: 5.434 MB / 0.5298 GB, free: 15.85 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.6074, allocations: 68.66 kB / 0.5298 GB, free: 15.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.6091, allocations: 1.232 MB / 0.531 GB, free: 14.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.069e-05/0.6092, allocations: 25.7 kB / 0.531 GB, free: 14.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004151/0.6096, allocations: 0.8464 MB / 0.5319 GB, free: 13.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003392/0.6099, allocations: 465 kB / 0.5323 GB, free: 13.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-05/0.61, allocations: 0 / 0.5323 GB, free: 13.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.6102, allocations: 373.8 kB / 0.5327 GB, free: 12.81 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.6113, allocations: 0.8629 MB / 0.5335 GB, free: 11.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.6126, allocations: 1.168 MB / 0.5347 GB, free: 10.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.6139, allocations: 1.009 MB / 0.5356 GB, free: 9.648 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.6139, allocations: 8 kB / 0.5357 GB, free: 9.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004201/0.6181, allocations: 2.82 MB / 0.5384 GB, free: 6.797 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.6181, allocations: 4.25 kB / 0.5384 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.6181, allocations: 12 kB / 0.5384 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001885/0.62, allocations: 0.8302 MB / 0.5392 GB, free: 5.938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.6213, allocations: 311.5 kB / 0.5395 GB, free: 5.633 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009158/0.6304, allocations: 8.446 MB / 0.5478 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.6319, allocations: 63.88 kB / 0.5478 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.632, allocations: 59.98 kB / 0.5479 GB, free: 12.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002855/0.6323, allocations: 137.3 kB / 0.548 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.6326, allocations: 173.8 kB / 0.5482 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004255/0.6369, allocations: 2.702 MB / 0.5508 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.6369, allocations: 16 kB / 0.5508 GB, free: 9.648 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.6369, allocations: 8 kB / 0.5509 GB, free: 9.641 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.6369, allocations: 7.969 kB / 0.5509 GB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008084/0.645, allocations: 5.26 MB / 0.556 GB, free: 4.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.645, allocations: 4 kB / 0.556 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000951/0.646, allocations: 200 kB / 0.5562 GB, free: 4.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/0.6482, allocations: 0.8782 MB / 0.5571 GB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.6483, allocations: 19.97 kB / 0.5571 GB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009951/0.6582, allocations: 9.886 MB / 0.5667 GB, free: 8.797 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.6583, allocations: 0 / 0.5667 GB, free: 8.797 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005782/0.6641, allocations: 4.194 MB / 0.5708 GB, free: 4.477 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1089/0.773, allocations: 5.939 MB / 0.5766 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008681/0.7739, allocations: 450 kB / 0.577 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.7742, allocations: 15.16 kB / 0.5771 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009222/0.7751, allocations: 60.05 kB / 0.5771 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.7753, allocations: 102.7 kB / 0.5772 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.792e-05/0.7754, allocations: 37.23 kB / 0.5773 GB, free: 158.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001082/0.7765, allocations: 0.9308 MB / 0.5782 GB, free: 157.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001994/0.7785, allocations: 0.5133 MB / 0.5787 GB, free: 157.9 MB / 426.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: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 19,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003977/0.7789, allocations: 284.8 kB / 0.5789 GB, free: 157.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002999/0.7819, allocations: 2.746 MB / 0.5816 GB, free: 157.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.7819, allocations: 0 / 0.5816 GB, free: 157.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002129/0.7841, allocations: 1.839 MB / 0.5834 GB, free: 156.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.7855, allocations: 361.7 kB / 0.5838 GB, free: 156.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006039/0.7916, allocations: 4.263 MB / 0.5879 GB, free: 155.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001794/0.7934, allocations: 2.154 MB / 0.59 GB, free: 155.2 MB / 426.7 MB Notification: Performance of SimCode: time 3.6e-07/0.7934, allocations: 0 / 0.59 GB, free: 155.2 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe 2>&1)