Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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 3.2.3+maint.om/package.mo): time 0.001807/0.001807, allocations: 175.3 kB / 8.476 MB, free: 1.875 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.177/1.177, allocations: 205.2 MB / 214.1 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008952/0.0008952, allocations: 96.39 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08799/0.08892, allocations: 52.99 MB / 315.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.2602, allocations: 47.55 MB / 362.6 MB, free: 45.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.3715, allocations: 112.1 MB / 474.7 MB, free: 5.734 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.3718, allocations: 87.95 kB / 474.8 MB, free: 5.648 MB / 362.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.3363/0.7081, allocations: 85.76 MB / 0.5474 GB, free: 50.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.7082, allocations: 13.59 kB / 0.5475 GB, free: 50.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004553/0.7128, allocations: 0.7413 MB / 0.5482 GB, free: 49.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008675/0.7215, allocations: 3.372 MB / 0.5515 GB, free: 49.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/0.7217, allocations: 111.5 kB / 0.5516 GB, free: 49.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/0.7228, allocations: 192 kB / 0.5518 GB, free: 49.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006952/0.7297, allocations: 3.199 MB / 0.5549 GB, free: 49.28 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/0.7401, allocations: 3.712 MB / 0.5585 GB, free: 48.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/0.7403, allocations: 4.281 kB / 0.5585 GB, free: 48.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006327/0.7409, allocations: 2.781 kB / 0.5585 GB, free: 48.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001695/0.7411, allocations: 148.9 kB / 0.5587 GB, free: 48.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02291/0.764, allocations: 12.94 MB / 0.5713 GB, free: 43.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.7656, allocations: 1.119 MB / 0.5724 GB, free: 43.46 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001934/0.7675, allocations: 1.363 MB / 0.5737 GB, free: 42.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006805/0.7744, allocations: 4.113 MB / 0.5777 GB, free: 40.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/0.7757, allocations: 0.9554 MB / 0.5787 GB, free: 40.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 4.018e-06/0.7757, allocations: 0 / 0.5787 GB, free: 40.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=168): time 0.01033/0.786, allocations: 5.628 MB / 0.5842 GB, free: 37.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.7861, allocations: 223.2 kB / 0.5844 GB, free: 37.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/0.7882, allocations: 1.379 MB / 0.5857 GB, free: 36.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.7884, allocations: 29.58 kB / 0.5857 GB, free: 36.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008052/0.7892, allocations: 1.19 MB / 0.5869 GB, free: 35.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003572/0.7896, allocations: 0.5448 MB / 0.5874 GB, free: 35.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.7897, allocations: 0 / 0.5874 GB, free: 35.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.7898, allocations: 384.9 kB / 0.5878 GB, free: 34.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.7908, allocations: 0.7353 MB / 0.5885 GB, free: 34.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.792, allocations: 1.283 MB / 0.5898 GB, free: 33.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.7937, allocations: 1.023 MB / 0.5908 GB, free: 32.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.7937, allocations: 3.906 kB / 0.5908 GB, free: 32.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.004089/0.7978, allocations: 2.534 MB / 0.5933 GB, free: 31.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.7978, allocations: 3.969 kB / 0.5933 GB, free: 31.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.7979, allocations: 15.66 kB / 0.5933 GB, free: 31.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007248/0.7986, allocations: 287.7 kB / 0.5936 GB, free: 31.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.8004, allocations: 431 kB / 0.594 GB, free: 31.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/0.8047, allocations: 5.514 MB / 0.5993 GB, free: 26.26 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.8063, allocations: 59 kB / 0.5994 GB, free: 26.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002264/0.8066, allocations: 82.73 kB / 0.5995 GB, free: 26.23 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 (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.0003633/0.8069, allocations: 164 kB / 0.5996 GB, free: 26.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003413/0.8073, allocations: 186.9 kB / 0.5998 GB, free: 25.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004149/0.8114, allocations: 2.429 MB / 0.6022 GB, free: 24.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.8115, allocations: 19.62 kB / 0.6022 GB, free: 24.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/0.8115, allocations: 7.812 kB / 0.6022 GB, free: 24.52 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.8115, allocations: 11.91 kB / 0.6022 GB, free: 24.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008145/0.8197, allocations: 5.393 MB / 0.6075 GB, free: 19.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.8197, allocations: 4 kB / 0.6075 GB, free: 19.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.8208, allocations: 223.8 kB / 0.6077 GB, free: 18.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.822, allocations: 456.2 kB / 0.6081 GB, free: 18.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.8221, allocations: 15.98 kB / 0.6082 GB, free: 18.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007494/0.8296, allocations: 9.556 MB / 0.6175 GB, free: 8.273 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.8297, allocations: 4 kB / 0.6175 GB, free: 8.27 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005121/0.8348, allocations: 3.506 MB / 0.6209 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006137/0.841, allocations: 4.988 MB / 0.6258 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.8421, allocations: 450.6 kB / 0.6262 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000475/0.8425, allocations: 15.98 kB / 0.6262 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.8437, allocations: 39.97 kB / 0.6263 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.8439, allocations: 93.84 kB / 0.6264 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.8441, allocations: 44 kB / 0.6264 GB, free: 14.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001855/0.8459, allocations: 1.032 MB / 0.6274 GB, free: 13.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003106/0.849, allocations: 0.5975 MB / 0.628 GB, free: 13.3 MB / 410.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.001166/0.8502, allocations: 0.5499 MB / 0.6285 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00363/0.8539, allocations: 2.268 MB / 0.6308 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.8539, allocations: 0 / 0.6308 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002432/0.8563, allocations: 1.52 MB / 0.6322 GB, free: 8.918 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002312/0.8587, allocations: 357.3 kB / 0.6326 GB, free: 8.566 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/0.8711, allocations: 4.8 MB / 0.6373 GB, free: 3.703 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003814/0.8749, allocations: 2.566 MB / 0.6398 GB, free: 1.113 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.8749, allocations: 0 / 0.6398 GB, free: 1.113 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1)