Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") [: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.2+maint.om/package.mo): time 0.001574/0.001574, allocations: 189.6 kB / 8.13 MB, free: 2.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.157/1.157, allocations: 194.2 MB / 202.8 MB, free: 8.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001771/0.001771, allocations: 117.7 kB / 247.7 MB, free: 6.41 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/8.626e-06, allocations: 3.938 kB / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07364/0.07367, allocations: 44.49 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2247/0.2984, allocations: 106.4 MB / 448.5 MB, free: 5.191 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.2986, allocations: 90.09 kB / 448.6 MB, free: 5.148 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmax. Notification: Performance of FrontEnd: time 0.3357/0.6344, allocations: 81.81 MB / 0.518 GB, free: 56.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002275/0.6347, allocations: 86.86 kB / 0.5181 GB, free: 56.04 MB / 394.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.007869/0.6425, allocations: 3.35 MB / 0.5213 GB, free: 54.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.6426, allocations: 13.84 kB / 0.5213 GB, free: 54.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004322/0.6469, allocations: 0.7457 MB / 0.5221 GB, free: 54.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008113/0.6551, allocations: 3.348 MB / 0.5253 GB, free: 54.14 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.6553, allocations: 105.4 kB / 0.5254 GB, free: 54.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007472/0.656, allocations: 196.5 kB / 0.5256 GB, free: 54.13 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005996/0.662, allocations: 3.199 MB / 0.5288 GB, free: 54.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006181/0.6682, allocations: 3.711 MB / 0.5324 GB, free: 53.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.353e-05/0.6683, allocations: 12.91 kB / 0.5324 GB, free: 53.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002962/0.6686, allocations: 3.531 kB / 0.5324 GB, free: 53.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.6688, allocations: 150.5 kB / 0.5325 GB, free: 53.76 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01868/0.6874, allocations: 12.96 MB / 0.5452 GB, free: 51.28 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.6889, allocations: 1.118 MB / 0.5463 GB, free: 51.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.6907, allocations: 1.367 MB / 0.5476 GB, free: 51.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006158/0.6969, allocations: 4.128 MB / 0.5517 GB, free: 50.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.6981, allocations: 0.9583 MB / 0.5526 GB, free: 50.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 3.987e-06/0.6981, allocations: 0 / 0.5526 GB, free: 50.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=168): time 0.01022/0.7083, allocations: 5.634 MB / 0.5581 GB, free: 48.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.7084, allocations: 222 kB / 0.5583 GB, free: 48.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.7104, allocations: 1.37 MB / 0.5596 GB, free: 48.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002057/0.7106, allocations: 28.33 kB / 0.5597 GB, free: 48.51 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008574/0.7115, allocations: 1.193 MB / 0.5608 GB, free: 47.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004199/0.7119, allocations: 0.543 MB / 0.5614 GB, free: 47.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.033e-05/0.712, allocations: 0 / 0.5614 GB, free: 47.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.7121, allocations: 388.7 kB / 0.5617 GB, free: 46.93 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.7131, allocations: 0.7482 MB / 0.5625 GB, free: 46.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.7144, allocations: 1.295 MB / 0.5637 GB, free: 45.63 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.716, allocations: 1.032 MB / 0.5647 GB, free: 45.22 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.716, allocations: 6.625 kB / 0.5647 GB, free: 45.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.00403/0.72, allocations: 2.579 MB / 0.5673 GB, free: 44.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.7201, allocations: 6.125 kB / 0.5673 GB, free: 44.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/0.7201, allocations: 15.22 kB / 0.5673 GB, free: 44.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007274/0.7208, allocations: 290.7 kB / 0.5676 GB, free: 44.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/0.7226, allocations: 432.8 kB / 0.568 GB, free: 44.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004189/0.7268, allocations: 5.505 MB / 0.5733 GB, free: 39.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.7284, allocations: 61.59 kB / 0.5734 GB, free: 39.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/0.7287, allocations: 85.75 kB / 0.5735 GB, free: 39.45 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 1 * 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%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003229/0.729, allocations: 152.1 kB / 0.5736 GB, free: 39.33 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003445/0.7293, allocations: 186.5 kB / 0.5738 GB, free: 39.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004233/0.7336, allocations: 2.43 MB / 0.5762 GB, free: 38.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.7336, allocations: 15.22 kB / 0.5762 GB, free: 38.13 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/0.7336, allocations: 7.781 kB / 0.5762 GB, free: 38.13 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.7337, allocations: 7.031 kB / 0.5762 GB, free: 38.13 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008696/0.7424, allocations: 5.398 MB / 0.5815 GB, free: 35.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.7424, allocations: 5.25 kB / 0.5815 GB, free: 35.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.7435, allocations: 222 kB / 0.5817 GB, free: 35.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.7448, allocations: 457.7 kB / 0.5821 GB, free: 35.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.7449, allocations: 20.33 kB / 0.5822 GB, free: 35.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008239/0.7532, allocations: 9.555 MB / 0.5915 GB, free: 27.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7532, allocations: 1.656 kB / 0.5915 GB, free: 27.39 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005468/0.7587, allocations: 3.508 MB / 0.5949 GB, free: 25.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009836/0.7597, allocations: 448.3 kB / 0.5953 GB, free: 25.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005288/0.7602, allocations: 17.84 kB / 0.5954 GB, free: 25.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.7614, allocations: 49.45 kB / 0.5954 GB, free: 25.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.7616, allocations: 89.2 kB / 0.5955 GB, free: 25.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.7617, allocations: 42.86 kB / 0.5955 GB, free: 25.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001734/0.7634, allocations: 1.024 MB / 0.5965 GB, free: 24.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002377/0.7658, allocations: 0.5744 MB / 0.5971 GB, free: 24.83 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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%) 8,(1,100.0%) 3,(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.001015/0.7668, allocations: 0.5217 MB / 0.5976 GB, free: 24.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003343/0.7702, allocations: 2.317 MB / 0.5999 GB, free: 23.51 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7702, allocations: 1.375 kB / 0.5999 GB, free: 23.51 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002172/0.7724, allocations: 1.523 MB / 0.6014 GB, free: 22.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.7743, allocations: 359.7 kB / 0.6017 GB, free: 22.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009831/0.7841, allocations: 4.777 MB / 0.6064 GB, free: 20.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00248/0.7866, allocations: 2.561 MB / 0.6089 GB, free: 19.41 MB / 394.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7866, allocations: 0 / 0.6089 GB, free: 19.41 MB / 394.7 MB Notification: Performance of Templates: time 0.04594/0.8326, allocations: 28.6 MB / 0.6368 GB, free: 9.348 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1)