Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001212, allocations: 175.8 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.31/1.31, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007304/0.0007307, allocations: 93 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003156/0.0003157, allocations: 15.98 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.209, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD): time 0.00664/0.2157, allocations: 8.631 MB / 383.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004344/0.22, allocations: 2.961 MB / 386.8 MB, free: 36.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.2212, allocations: 39.62 kB / 386.8 MB, free: 36.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.2225, allocations: 0.5286 MB / 387.4 MB, free: 35.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001692/0.2242, allocations: 0.726 MB / 388.1 MB, free: 35.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005143/0.2247, allocations: 245.8 kB / 388.3 MB, free: 35.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002013/0.2268, allocations: 3.204 MB / 391.5 MB, free: 32.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001495/0.2283, allocations: 2.006 MB / 393.5 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008094/0.2291, allocations: 1.027 MB / 394.6 MB, free: 29.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.2301, allocations: 1.385 MB / 395.9 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002067/0.2303, allocations: 160 kB / 396.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004521/0.2308, allocations: 255.8 kB / 396.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004662/0.2313, allocations: 0.7515 MB / 397.1 MB, free: 26.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007845/0.2321, allocations: 1.296 MB / 398.4 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00177/0.2338, allocations: 3.779 MB / 402.2 MB, free: 21.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2338, allocations: 4 kB / 402.2 MB, free: 21.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2338, allocations: 0 / 402.2 MB, free: 21.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.725e-05/0.2339, allocations: 4 kB / 402.2 MB, free: 21.57 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 592 * Number of variables: 592 Notification: Performance of Generate backend data structure: time 0.003648/0.2375, allocations: 2.726 MB / 404.9 MB, free: 18.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.2376, allocations: 16.02 kB / 404.9 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003041/0.2379, allocations: 329.2 kB / 405.2 MB, free: 18.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005187/0.2384, allocations: 321.4 kB / 405.6 MB, free: 18.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001819/0.2402, allocations: 1.623 MB / 407.2 MB, free: 16.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.038e-05/0.2403, allocations: 176.7 kB / 407.4 MB, free: 16.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/0.2406, allocations: 235.9 kB / 407.6 MB, free: 16.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003773/0.2444, allocations: 3.18 MB / 410.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.885e-05/0.2444, allocations: 7.906 kB / 410.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.2446, allocations: 95.98 kB / 410.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.874e-05/0.2447, allocations: 104.4 kB / 411 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003338/0.248, allocations: 2.746 MB / 413.7 MB, free: 9.777 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.2582, allocations: 9.949 MB / 423.7 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.2604, allocations: 2.09 MB / 425.8 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.2621, allocations: 1.206 MB / 427 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002323/0.2624, allocations: 138.8 kB / 427.1 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.2624, allocations: 47.56 kB / 427.1 MB, free: 11.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 2.936e-06/0.2624, allocations: 0 / 427.1 MB, free: 11.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=142): time 0.01562/0.2781, allocations: 8.085 MB / 435.2 MB, free: 3.727 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.2781, allocations: 72.72 kB / 435.3 MB, free: 3.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.2801, allocations: 1.661 MB / 437 MB, free: 1.973 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.575e-05/0.2802, allocations: 53.64 kB / 437 MB, free: 1.914 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006896/0.2809, allocations: 1.089 MB / 438.1 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.2812, allocations: 492.9 kB / 438.6 MB, free: 328 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.376e-05/0.2813, allocations: 32 kB / 438.6 MB, free: 296 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2814, allocations: 361.9 kB / 439 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.2827, allocations: 0.9174 MB / 439.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.2842, allocations: 1.275 MB / 441.2 MB, free: 13.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002874/0.2871, allocations: 2.262 MB / 443.4 MB, free: 11.19 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.2871, allocations: 3.938 kB / 443.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.004596/0.2917, allocations: 3.049 MB / 446.5 MB, free: 8.109 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.2917, allocations: 8 kB / 446.5 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/0.2918, allocations: 12 kB / 446.5 MB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001828/0.2936, allocations: 0.8404 MB / 447.3 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.2947, allocations: 311.5 kB / 447.6 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009341/0.304, allocations: 9.084 MB / 456.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.3052, allocations: 99.91 kB / 456.8 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.3054, allocations: 60 kB / 456.9 MB, free: 13.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 150 * 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: 3 * 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: 3 {(2,100.0%) 12,(9,33.3%) 19,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001213/0.3066, allocations: 0.8145 MB / 457.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.3069, allocations: 193.6 kB / 457.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004428/0.3113, allocations: 2.85 MB / 460.7 MB, free: 9.391 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.3113, allocations: 16 kB / 460.7 MB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.3113, allocations: 4 kB / 460.8 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.3113, allocations: 7.969 kB / 460.8 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008322/0.3197, allocations: 5.698 MB / 466.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.3197, allocations: 4 kB / 466.5 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008101/0.3205, allocations: 204 kB / 466.7 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002088/0.3226, allocations: 0.8928 MB / 467.6 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.753e-05/0.3227, allocations: 39.98 kB / 467.6 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/0.3332, allocations: 10.56 MB / 478.2 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.3333, allocations: 4.031 kB / 478.2 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00606/0.3393, allocations: 4.171 MB / 482.3 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007497/0.3401, allocations: 466.7 kB / 482.8 MB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002007/0.3403, allocations: 35.98 kB / 482.8 MB, free: 2.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008336/0.3411, allocations: 87.91 kB / 482.9 MB, free: 2.473 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003913/0.3416, allocations: 157 kB / 483.1 MB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.607e-05/0.3416, allocations: 39.98 kB / 483.1 MB, free: 2.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001426/0.3431, allocations: 1.138 MB / 484.2 MB, free: 1.145 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3431, allocations: 0 / 484.2 MB, free: 1.145 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001438/0.3445, allocations: 0.5629 MB / 484.8 MB, free: 0.582 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 94 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 19,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005935/0.3505, allocations: 4.802 MB / 489.6 MB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003957/0.3544, allocations: 3.022 MB / 492.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3545, allocations: 0 / 492.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002623/0.3571, allocations: 2.03 MB / 494.7 MB, free: 6.508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.3594, allocations: 488.2 kB / 495.1 MB, free: 6.031 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1505/0.51, allocations: 16.13 MB / 0.4993 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.5113, allocations: 1.989 MB / 0.5012 GB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009364/0.5122, allocations: 0.8964 MB / 0.5021 GB, free: 103.4 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5122, allocations: 3.188 kB / 0.5021 GB, free: 103.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.95/8.462, allocations: 99.49 MB / 0.5992 GB, free: 6.473 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe 2>&1)