Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",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.001851/0.001851, allocations: 170.9 kB / 8.47 MB, free: 1.859 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.148/1.148, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0008689/0.0008689, allocations: 82.27 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1541/0.155, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0652/0.2202, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.249/0.4693, allocations: 121.4 MB / 484.1 MB, free: 3.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4695, allocations: 83.33 kB / 484.1 MB, free: 3.707 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.451/0.9206, allocations: 121 MB / 0.591 GB, free: 74.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.9206, allocations: 9.906 kB / 0.591 GB, free: 74.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005316/0.926, allocations: 1.003 MB / 0.592 GB, free: 73.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0101/0.9361, allocations: 4.617 MB / 0.5965 GB, free: 73.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/0.9363, allocations: 165.6 kB / 0.5966 GB, free: 73.03 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001179/0.9375, allocations: 311.4 kB / 0.5969 GB, free: 73.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009317/0.9468, allocations: 5.239 MB / 0.602 GB, free: 73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01083/0.9577, allocations: 6.056 MB / 0.6079 GB, free: 72.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001469/0.9578, allocations: 14.11 kB / 0.608 GB, free: 72.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006144/0.9585, allocations: 3.344 kB / 0.608 GB, free: 72.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001544/0.9586, allocations: 230.8 kB / 0.6082 GB, free: 72.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03056/0.9892, allocations: 20.57 MB / 0.6283 GB, free: 68.12 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/0.9914, allocations: 1.736 MB / 0.63 GB, free: 68.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003048/0.9945, allocations: 2.261 MB / 0.6322 GB, free: 68.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008132/1.003, allocations: 5.225 MB / 0.6373 GB, free: 65.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/1.003, allocations: 58.38 kB / 0.6373 GB, free: 65.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=258): time 4.248e-06/1.003, allocations: 0 / 0.6373 GB, free: 65.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=277): time 0.01463/1.017, allocations: 8.745 MB / 0.6459 GB, free: 61.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/1.017, allocations: 78.78 kB / 0.646 GB, free: 61.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/1.021, allocations: 2.148 MB / 0.648 GB, free: 60.49 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001652/1.021, allocations: 25.7 kB / 0.6481 GB, free: 60.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007087/1.021, allocations: 1.823 MB / 0.6499 GB, free: 59.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000529/1.022, allocations: 0.8997 MB / 0.6507 GB, free: 58.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/1.022, allocations: 1.594 kB / 0.6507 GB, free: 58.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/1.022, allocations: 441.6 kB / 0.6512 GB, free: 58.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/1.024, allocations: 1.435 MB / 0.6526 GB, free: 57.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002095/1.026, allocations: 2.191 MB / 0.6547 GB, free: 56.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/1.029, allocations: 1.861 MB / 0.6565 GB, free: 55.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/1.029, allocations: 7.844 kB / 0.6565 GB, free: 55.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=403) (initialization): time 0.007479/1.036, allocations: 4.704 MB / 0.6611 GB, free: 53.51 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/1.036, allocations: 4.906 kB / 0.6611 GB, free: 53.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-05/1.037, allocations: 22.66 kB / 0.6611 GB, free: 53.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00195/1.039, allocations: 0.7651 MB / 0.6619 GB, free: 53.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00296/1.041, allocations: 0.6954 MB / 0.6626 GB, free: 53.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009978/1.051, allocations: 12.52 MB / 0.6748 GB, free: 42.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/1.054, allocations: 84.61 kB / 0.6749 GB, free: 42.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004684/1.055, allocations: 132.2 kB / 0.675 GB, free: 42.76 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (360): * Single equations (assignments): 350 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 7 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006446/1.055, allocations: 179 kB / 0.6752 GB, free: 42.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000746/1.056, allocations: 307.7 kB / 0.6755 GB, free: 42.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008021/1.064, allocations: 4.394 MB / 0.6798 GB, free: 40.65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.957e-05/1.064, allocations: 31.56 kB / 0.6798 GB, free: 40.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.489e-05/1.064, allocations: 10.59 kB / 0.6798 GB, free: 40.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/1.064, allocations: 14.77 kB / 0.6798 GB, free: 40.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01491/1.079, allocations: 9.192 MB / 0.6888 GB, free: 33.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/1.079, allocations: 4 kB / 0.6888 GB, free: 33.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/1.081, allocations: 447 kB / 0.6892 GB, free: 33.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002376/1.084, allocations: 0.9128 MB / 0.6901 GB, free: 32.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/1.084, allocations: 35.64 kB / 0.6901 GB, free: 32.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/1.096, allocations: 15.45 MB / 0.7052 GB, free: 17.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.096, allocations: 8.062 kB / 0.7052 GB, free: 17.08 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009028/1.105, allocations: 6.835 MB / 0.7119 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01109/1.116, allocations: 9.413 MB / 0.7211 GB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/1.118, allocations: 0.7091 MB / 0.7218 GB, free: 1.262 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008315/1.119, allocations: 23.89 kB / 0.7218 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/1.121, allocations: 95.91 kB / 0.7219 GB, free: 1.172 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/1.121, allocations: 160.4 kB / 0.7221 GB, free: 1.078 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/1.121, allocations: 82.23 kB / 0.7221 GB, free: 1.004 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00291/1.124, allocations: 1.618 MB / 0.7237 GB, free: 15.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004244/1.128, allocations: 0.937 MB / 0.7246 GB, free: 14.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 209 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007166/1.129, allocations: 397.8 kB / 0.725 GB, free: 14.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006984/1.136, allocations: 4.614 MB / 0.7295 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/1.136, allocations: 0 / 0.7295 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004472/1.141, allocations: 2.947 MB / 0.7324 GB, free: 7.195 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00328/1.144, allocations: 0.6048 MB / 0.733 GB, free: 6.715 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1445/1.288, allocations: 8.6 MB / 0.7414 GB, free: 122.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004089/1.293, allocations: 3.789 MB / 0.7451 GB, free: 121.3 MB / 442.7 MB Notification: Performance of SimCode: time 5.21e-07/1.293, allocations: 0 / 0.7451 GB, free: 121.3 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)