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.002442/0.002447, allocations: 188.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.274/2.274, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001164/0.001164, allocations: 98.84 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003929/0.0003932, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09991/0.1003, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD): time 0.0142/0.1146, allocations: 7.902 MB / 382.5 MB, free: 7.406 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008253/0.1229, allocations: 3.042 MB / 385.6 MB, free: 4.352 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001596/0.1246, allocations: 39.81 kB / 385.6 MB, free: 4.312 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002635/0.1272, allocations: 0.552 MB / 386.2 MB, free: 3.758 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003476/0.1308, allocations: 0.6854 MB / 386.9 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.1322, allocations: 243.7 kB / 387.1 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004787/0.137, allocations: 1.965 MB / 389.1 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.263/0.4001, allocations: 1.563 MB / 390.6 MB, free: 9.668 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002352/0.4025, allocations: 0.9431 MB / 391.6 MB, free: 9.664 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003354/0.4059, allocations: 1.196 MB / 392.8 MB, free: 9.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00108/0.407, allocations: 155 kB / 392.9 MB, free: 9.664 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.4089, allocations: 213.2 kB / 393.1 MB, free: 9.664 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00186/0.4108, allocations: 0.7104 MB / 393.8 MB, free: 9.66 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.4125, allocations: 0.553 MB / 394.4 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007121/0.4197, allocations: 3.729 MB / 398.1 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4197, allocations: 1.094 kB / 398.1 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.4198, allocations: 0 / 398.1 MB, free: 9.395 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001826/0.42, allocations: 4 kB / 398.1 MB, free: 9.391 MB / 282.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.01081/0.4308, allocations: 2.742 MB / 400.9 MB, free: 7.871 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.4309, allocations: 9.219 kB / 400.9 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001735/0.4326, allocations: 328 kB / 401.2 MB, free: 7.766 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002215/0.4349, allocations: 328 kB / 401.5 MB, free: 7.605 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005571/0.4405, allocations: 1.587 MB / 403.1 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002991/0.4408, allocations: 170 kB / 403.3 MB, free: 6.898 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00121/0.4421, allocations: 229 kB / 403.5 MB, free: 6.895 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01188/0.454, allocations: 3.161 MB / 406.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001382/0.4542, allocations: 10.77 kB / 406.7 MB, free: 6.02 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006368/0.4548, allocations: 90.97 kB / 406.8 MB, free: 6.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001879/0.455, allocations: 107 kB / 406.9 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01018/0.4652, allocations: 2.748 MB / 409.6 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02866/0.4939, allocations: 9.884 MB / 419.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005102/0.4991, allocations: 2.107 MB / 421.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004752/0.4996, allocations: 127.9 kB / 421.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.4997, allocations: 47.56 kB / 421.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=126): time 4.538e-06/0.4997, allocations: 0 / 421.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.03634/0.5361, allocations: 8.11 MB / 429.9 MB, free: 3.453 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.5362, allocations: 70.84 kB / 429.9 MB, free: 3.375 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004202/0.5404, allocations: 1.625 MB / 431.6 MB, free: 1.742 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004721/0.5409, allocations: 49.7 kB / 431.6 MB, free: 1.688 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.5422, allocations: 1.03 MB / 432.7 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009644/0.5432, allocations: 487.8 kB / 433.1 MB, free: 184 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.5434, allocations: 32 kB / 433.2 MB, free: 152 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002882/0.5437, allocations: 378.7 kB / 433.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003017/0.5467, allocations: 0.9135 MB / 434.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003501/0.5503, allocations: 1.267 MB / 435.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003487/0.5538, allocations: 1.076 MB / 436.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.494e-05/0.5539, allocations: 4 kB / 436.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.0101/0.564, allocations: 2.949 MB / 439.7 MB, free: 9.395 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.5641, allocations: 11.98 kB / 439.8 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/0.5641, allocations: 12 kB / 439.8 MB, free: 9.371 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003936/0.5681, allocations: 0.8442 MB / 440.6 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002519/0.5706, allocations: 307.5 kB / 440.9 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01948/0.5902, allocations: 9.328 MB / 450.2 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/0.5928, allocations: 98.09 kB / 450.3 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003861/0.5932, allocations: 63.98 kB / 450.4 MB, free: 14.33 MB / 330.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.003008/0.5963, allocations: 0.8143 MB / 451.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008325/0.5971, allocations: 185.7 kB / 451.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009973/0.6071, allocations: 2.866 MB / 454.3 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-05/0.6072, allocations: 16 kB / 454.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.323e-05/0.6072, allocations: 4 kB / 454.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-05/0.6073, allocations: 3.984 kB / 454.3 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01894/0.6262, allocations: 5.669 MB / 459.9 MB, free: 4.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.207e-05/0.6263, allocations: 4 kB / 460 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/0.6282, allocations: 200 kB / 460.1 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004518/0.6327, allocations: 0.8867 MB / 461 MB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004181/0.6332, allocations: 35.98 kB / 461.1 MB, free: 3.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02148/0.6547, allocations: 10.85 MB / 471.9 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.6548, allocations: 4 kB / 471.9 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01305/0.6678, allocations: 4.332 MB / 476.2 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001984/0.6699, allocations: 458.8 kB / 476.7 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008277/0.6707, allocations: 35.94 kB / 476.7 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002119/0.6729, allocations: 87.92 kB / 476.8 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007101/0.6736, allocations: 149.1 kB / 477 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.6738, allocations: 35.98 kB / 477 MB, free: 2.918 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00294/0.6768, allocations: 1.11 MB / 478.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.045e-06/0.6768, allocations: 384 / 478.1 MB, free: 1.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003729/0.6806, allocations: 0.5585 MB / 478.7 MB, free: 1.254 MB / 346.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.01416/0.6948, allocations: 5.527 MB / 484.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008917/0.7037, allocations: 3.025 MB / 487.2 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.7038, allocations: 4 kB / 487.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006126/0.7099, allocations: 2.047 MB / 489.3 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004076/0.7141, allocations: 472.6 kB / 489.7 MB, free: 5.938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05549/0.7696, allocations: 22.66 MB / 0.5004 GB, free: 14.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003837/0.7735, allocations: 2.036 MB / 0.5024 GB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002652/0.7762, allocations: 0.8937 MB / 0.5032 GB, free: 11.42 MB / 394.7 MB Notification: Performance of SimCode: time 4.849e-06/0.7763, allocations: 2.297 kB / 0.5032 GB, free: 11.42 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.249/5.025, allocations: 99.91 MB / 0.6008 GB, free: 74.69 MB / 410.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)