Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001508/0.001509, allocations: 183.2 kB / 8.135 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.197/1.197, 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.00093/0.0009299, allocations: 100.9 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09636/0.09732, allocations: 55.83 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.2857, allocations: 50.39 MB / 387 MB, free: 38.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.4016, allocations: 113.7 MB / 0.4889 GB, free: 5.109 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.4019, allocations: 97.02 kB / 0.489 GB, free: 5.016 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.3391/0.741, allocations: 86.1 MB / 0.5731 GB, free: 26.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.741, allocations: 8 kB / 0.5731 GB, free: 26.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004029/0.7451, allocations: 0.745 MB / 0.5739 GB, free: 25.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007018/0.7521, allocations: 3.385 MB / 0.5772 GB, free: 22.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.7522, allocations: 104 kB / 0.5773 GB, free: 21.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005107/0.7527, allocations: 187.9 kB / 0.5774 GB, free: 21.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004977/0.7577, allocations: 3.203 MB / 0.5806 GB, free: 18.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00532/0.763, allocations: 3.705 MB / 0.5842 GB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.5e-05/0.7631, allocations: 11.91 kB / 0.5842 GB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002764/0.7634, allocations: 4 kB / 0.5842 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.591e-05/0.7635, allocations: 142.4 kB / 0.5843 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/0.7793, allocations: 12.93 MB / 0.597 GB, free: 1.414 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.7806, allocations: 1.124 MB / 0.5981 GB, free: 288 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002084/0.7827, allocations: 1.356 MB / 0.5994 GB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006809/0.7895, allocations: 4.136 MB / 0.6034 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00143/0.7909, allocations: 0.9523 MB / 0.6044 GB, free: 9.766 MB / 394.7 MB Notification: Performance of pre-optimization done (n=161): time 3.477e-06/0.791, allocations: 0 / 0.6044 GB, free: 9.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=169): time 0.01114/0.8021, allocations: 5.674 MB / 0.6099 GB, free: 3.969 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.8022, allocations: 231.6 kB / 0.6101 GB, free: 3.695 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/0.8044, allocations: 1.372 MB / 0.6115 GB, free: 2.316 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.746e-05/0.8045, allocations: 25.7 kB / 0.6115 GB, free: 2.285 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009707/0.8055, allocations: 1.188 MB / 0.6126 GB, free: 1.074 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004651/0.806, allocations: 0.5504 MB / 0.6132 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.077e-05/0.8061, allocations: 0 / 0.6132 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.8063, allocations: 381.9 kB / 0.6135 GB, free: 140 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.8075, allocations: 0.7381 MB / 0.6143 GB, free: 15.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.8091, allocations: 1.28 MB / 0.6155 GB, free: 13.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001888/0.811, allocations: 1.029 MB / 0.6165 GB, free: 12.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.811, allocations: 4 kB / 0.6165 GB, free: 12.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004503/0.8155, allocations: 2.536 MB / 0.619 GB, free: 10.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.8156, allocations: 4 kB / 0.619 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/0.8156, allocations: 16 kB / 0.619 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007796/0.8164, allocations: 291.5 kB / 0.6193 GB, free: 9.977 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/0.8182, allocations: 419.4 kB / 0.6197 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005517/0.8238, allocations: 5.499 MB / 0.6251 GB, free: 3.723 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.8251, allocations: 64.23 kB / 0.6251 GB, free: 3.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/0.8253, allocations: 84.06 kB / 0.6252 GB, free: 3.578 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (225): * Single equations (assignments): 221 * 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 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003057/0.8256, allocations: 160.4 kB / 0.6254 GB, free: 3.414 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.8259, allocations: 189.7 kB / 0.6255 GB, free: 3.227 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004622/0.8305, allocations: 2.437 MB / 0.6279 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.8306, allocations: 16 kB / 0.6279 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.591e-05/0.8306, allocations: 8 kB / 0.6279 GB, free: 0.707 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/0.8306, allocations: 7.969 kB / 0.628 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008739/0.8393, allocations: 5.403 MB / 0.6332 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.8394, allocations: 8.094 kB / 0.6332 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.8405, allocations: 223.7 kB / 0.6335 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/0.8418, allocations: 460.3 kB / 0.6339 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.8419, allocations: 23.98 kB / 0.6339 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009843/0.8518, allocations: 9.575 MB / 0.6433 GB, free: 328 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.8518, allocations: 4 kB / 0.6433 GB, free: 324 kB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005577/0.8574, allocations: 3.506 MB / 0.6467 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007172/0.8646, allocations: 4.969 MB / 0.6515 GB, free: 7.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009759/0.8656, allocations: 454.6 kB / 0.652 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003925/0.866, allocations: 8 kB / 0.652 GB, free: 7.188 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.8671, allocations: 43.97 kB / 0.652 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.8673, allocations: 89.84 kB / 0.6521 GB, free: 7.059 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.8674, allocations: 44 kB / 0.6522 GB, free: 7.016 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001771/0.8692, allocations: 1.032 MB / 0.6532 GB, free: 5.988 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002832/0.872, allocations: 0.6016 MB / 0.6538 GB, free: 5.387 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (132): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001078/0.8731, allocations: 0.5445 MB / 0.6543 GB, free: 4.914 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003526/0.8766, allocations: 2.279 MB / 0.6565 GB, free: 2.582 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.8767, allocations: 0 / 0.6565 GB, free: 2.582 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/0.879, allocations: 1.521 MB / 0.658 GB, free: 1.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.8808, allocations: 381.2 kB / 0.6584 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1259/1.007, allocations: 4.777 MB / 0.663 GB, free: 134.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002422/1.009, allocations: 2.574 MB / 0.6655 GB, free: 133.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.132e-06/1.009, allocations: 0 / 0.6655 GB, free: 133.4 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1)