Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.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_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",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.001141/0.001141, allocations: 182.7 kB / 8.136 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.087/1.087, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0009336/0.0009336, allocations: 97.44 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09428/0.09525, allocations: 55.82 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.2795, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1106/0.3902, allocations: 107.4 MB / 494.4 MB, free: 11.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.3905, allocations: 87.89 kB / 494.5 MB, free: 11.19 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: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.2315/0.6219, allocations: 46.08 MB / 0.5279 GB, free: 81.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.622, allocations: 8 kB / 0.5279 GB, free: 81.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007984/0.6228, allocations: 284.9 kB / 0.5282 GB, free: 81.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00249/0.6253, allocations: 1.435 MB / 0.5296 GB, free: 80.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.595e-05/0.6254, allocations: 63.91 kB / 0.5297 GB, free: 80.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002556/0.6256, allocations: 119.9 kB / 0.5298 GB, free: 79.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002511/0.6281, allocations: 1.765 MB / 0.5315 GB, free: 78.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002775/0.6309, allocations: 2.125 MB / 0.5336 GB, free: 75.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.043e-05/0.631, allocations: 4 kB / 0.5336 GB, free: 75.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.6311, allocations: 4 kB / 0.5336 GB, free: 75.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-05/0.6312, allocations: 91.67 kB / 0.5337 GB, free: 75.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009016/0.6402, allocations: 7.102 MB / 0.5406 GB, free: 68.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009305/0.6412, allocations: 0.7534 MB / 0.5414 GB, free: 67.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009313/0.6421, allocations: 0.7532 MB / 0.5421 GB, free: 67.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002469/0.6424, allocations: 130 kB / 0.5422 GB, free: 67.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007549/0.6432, allocations: 0.6691 MB / 0.5429 GB, free: 66.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 3.226e-06/0.6432, allocations: 0 / 0.5429 GB, free: 66.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.009413/0.6526, allocations: 5.84 MB / 0.5486 GB, free: 60.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.6527, allocations: 167.5 kB / 0.5487 GB, free: 60.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.6539, allocations: 1.025 MB / 0.5497 GB, free: 59.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.594e-05/0.6539, allocations: 25.7 kB / 0.5498 GB, free: 59.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003911/0.6543, allocations: 0.7364 MB / 0.5505 GB, free: 58.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.6546, allocations: 441.4 kB / 0.5509 GB, free: 57.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.491e-05/0.6546, allocations: 0 / 0.5509 GB, free: 57.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.961e-05/0.6547, allocations: 369.9 kB / 0.5512 GB, free: 57.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007396/0.6555, allocations: 0.656 MB / 0.5519 GB, free: 56.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008628/0.6563, allocations: 1.005 MB / 0.5529 GB, free: 55.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009242/0.6573, allocations: 0.8221 MB / 0.5537 GB, free: 54.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.6573, allocations: 4 kB / 0.5537 GB, free: 54.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003254/0.6605, allocations: 2.342 MB / 0.556 GB, free: 52.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.6606, allocations: 11.98 kB / 0.556 GB, free: 52.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.6606, allocations: 8 kB / 0.556 GB, free: 52.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.662, allocations: 0.6449 MB / 0.5566 GB, free: 51.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.6631, allocations: 303.5 kB / 0.5569 GB, free: 51.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005506/0.6686, allocations: 5.892 MB / 0.5627 GB, free: 45.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.6698, allocations: 67.97 kB / 0.5627 GB, free: 45.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.6699, allocations: 56 kB / 0.5628 GB, free: 45.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 146 * 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 {(5,76.0%) 23,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002245/0.6701, allocations: 147.4 kB / 0.5629 GB, free: 45.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002519/0.6704, allocations: 146.2 kB / 0.5631 GB, free: 45.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00331/0.6737, allocations: 2.234 MB / 0.5652 GB, free: 42.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.6737, allocations: 19.84 kB / 0.5653 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.6738, allocations: 8 kB / 0.5653 GB, free: 42.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.6738, allocations: 7.969 kB / 0.5653 GB, free: 42.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006386/0.6802, allocations: 4.425 MB / 0.5696 GB, free: 38.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.6802, allocations: 4 kB / 0.5696 GB, free: 38.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007647/0.681, allocations: 188 kB / 0.5698 GB, free: 38.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001733/0.6827, allocations: 0.7096 MB / 0.5705 GB, free: 37.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.071e-05/0.6828, allocations: 15.98 kB / 0.5705 GB, free: 37.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006486/0.6893, allocations: 7.465 MB / 0.5778 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.6893, allocations: 7.906 kB / 0.5778 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004246/0.6936, allocations: 3.361 MB / 0.5811 GB, free: 26.13 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005051/0.6987, allocations: 4.764 MB / 0.5857 GB, free: 21.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007158/0.6994, allocations: 379.2 kB / 0.5861 GB, free: 20.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003179/0.6997, allocations: 15.97 kB / 0.5861 GB, free: 20.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008804/0.7006, allocations: 47.86 kB / 0.5861 GB, free: 20.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.7008, allocations: 85.06 kB / 0.5862 GB, free: 20.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.187e-05/0.7009, allocations: 35.98 kB / 0.5862 GB, free: 20.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001048/0.7019, allocations: 0.7645 MB / 0.587 GB, free: 19.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002094/0.704, allocations: 463.9 kB / 0.5874 GB, free: 19.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(5,76.0%) 23,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008828/0.7049, allocations: 493.7 kB / 0.5879 GB, free: 19.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002837/0.7078, allocations: 2.185 MB / 0.59 GB, free: 16.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.7078, allocations: 4 kB / 0.59 GB, free: 16.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001935/0.7097, allocations: 1.437 MB / 0.5915 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.7113, allocations: 288.3 kB / 0.5917 GB, free: 15.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005897/0.7172, allocations: 3.499 MB / 0.5951 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001482/0.7187, allocations: 1.867 MB / 0.597 GB, free: 9.605 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.7187, allocations: 4 kB / 0.597 GB, free: 9.602 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1)