Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 108.2 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001539/0.001538, allocations: 196 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 51.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3309, allocations: 49.44 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01228/0.3432, allocations: 10.29 MB / 410.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00781/0.3511, allocations: 3.201 MB / 413.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002507/0.3536, allocations: 55.81 kB / 413.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002377/0.3561, allocations: 0.6947 MB / 414.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003474/0.3596, allocations: 0.8776 MB / 415.4 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.3607, allocations: 411.4 kB / 415.8 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004153/0.3649, allocations: 3.405 MB / 419.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002736/0.3677, allocations: 2.603 MB / 421.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.3699, allocations: 1.511 MB / 423.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00286/0.3727, allocations: 1.86 MB / 425.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006038/0.3734, allocations: 396 kB / 425.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009717/0.3743, allocations: 487.8 kB / 426 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00103/0.3754, allocations: 1.099 MB / 427.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002223/0.3776, allocations: 1.781 MB / 428.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005928/0.3836, allocations: 5.211 MB / 434.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.3836, allocations: 0 / 434.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.3836, allocations: 0 / 434.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001367/0.3837, allocations: 0 / 434.1 MB, free: 6.801 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.008826/0.3926, allocations: 3.523 MB / 437.6 MB, free: 3.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.3926, allocations: 12.03 kB / 437.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005404/0.3932, allocations: 366.9 kB / 438 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008458/0.394, allocations: 353 kB / 438.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00376/0.3978, allocations: 1.921 MB / 440.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/0.398, allocations: 201 kB / 440.5 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/0.3983, allocations: 259.9 kB / 440.7 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006233/0.4046, allocations: 3.527 MB / 444.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.349e-05/0.4047, allocations: 11.91 kB / 444.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002413/0.4049, allocations: 108 kB / 444.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.4051, allocations: 108.9 kB / 444.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005709/0.4108, allocations: 3.095 MB / 447.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/0.4309, allocations: 10.73 MB / 458.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003524/0.4344, allocations: 3.082 MB / 461.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00223/0.4367, allocations: 1.388 MB / 462.8 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002804/0.437, allocations: 130.4 kB / 462.9 MB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001828/0.4388, allocations: 1.152 MB / 464 MB, free: 8.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.988e-06/0.4388, allocations: 0 / 464 MB, free: 8.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02028/0.4591, allocations: 8.863 MB / 472.9 MB, free: 15.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.4593, allocations: 184.2 kB / 473.1 MB, free: 14.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003531/0.4628, allocations: 1.835 MB / 474.9 MB, free: 12.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.463, allocations: 57.7 kB / 475 MB, free: 12.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.4642, allocations: 1.184 MB / 476.2 MB, free: 11.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000561/0.4647, allocations: 0.5663 MB / 476.7 MB, free: 11.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006701/0.4654, allocations: 355.2 kB / 477.1 MB, free: 10.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4655, allocations: 301.1 kB / 477.4 MB, free: 10.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.4672, allocations: 1.003 MB / 478.4 MB, free: 9.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/0.4693, allocations: 1.43 MB / 479.8 MB, free: 7.906 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003663/0.4729, allocations: 2.457 MB / 482.3 MB, free: 5.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.473, allocations: 0 / 482.3 MB, free: 5.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006417/0.4794, allocations: 3.338 MB / 485.6 MB, free: 1.938 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.4795, allocations: 8 kB / 485.6 MB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-05/0.4795, allocations: 12 kB / 485.6 MB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002397/0.4819, allocations: 0.8856 MB / 486.5 MB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.4834, allocations: 339.4 kB / 486.8 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/0.4968, allocations: 10.42 MB / 497.3 MB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002279/0.4991, allocations: 131.8 kB / 497.4 MB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000411/0.4996, allocations: 76.06 kB / 497.5 MB, free: 5.645 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002609/0.5022, allocations: 0.9214 MB / 498.4 MB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007933/0.503, allocations: 201.5 kB / 498.6 MB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006413/0.5094, allocations: 3.103 MB / 0.4899 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.5095, allocations: 20 kB / 0.4899 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.958e-05/0.5095, allocations: 8 kB / 0.4899 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/0.5095, allocations: 11.95 kB / 0.49 GB, free: 1.336 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.5222, allocations: 6.217 MB / 0.496 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.5222, allocations: 0 / 0.496 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008837/0.5231, allocations: 216 kB / 0.4962 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002299/0.5254, allocations: 0.9289 MB / 0.4971 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.5256, allocations: 47.97 kB / 0.4972 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01354/0.5392, allocations: 12.01 MB / 0.5089 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.5392, allocations: 0 / 0.5089 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007306/0.5465, allocations: 4.511 MB / 0.5133 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001472/0.548, allocations: 498.5 kB / 0.5138 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005475/0.5486, allocations: 36 kB / 0.5138 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.5499, allocations: 107.9 kB / 0.5139 GB, free: 8.008 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005174/0.5504, allocations: 196.9 kB / 0.5141 GB, free: 7.816 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.5505, allocations: 47.98 kB / 0.5142 GB, free: 7.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001958/0.5525, allocations: 1.255 MB / 0.5154 GB, free: 6.523 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5525, allocations: 0 / 0.5154 GB, free: 6.523 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002208/0.5547, allocations: 0.6368 MB / 0.516 GB, free: 5.887 MB / 446.1 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: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007133/0.5619, allocations: 5.169 MB / 0.5211 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005066/0.5669, allocations: 3.253 MB / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.567, allocations: 0 / 0.5242 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003281/0.5702, allocations: 2.251 MB / 0.5264 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002947/0.5732, allocations: 0.5829 MB / 0.527 GB, free: 10.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2827/0.8559, allocations: 22.34 MB / 0.5488 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001887/0.8578, allocations: 2.186 MB / 0.551 GB, free: 126.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001466/0.8593, allocations: 449.5 kB / 0.5514 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.8606, allocations: 1.01 MB / 0.5524 GB, free: 126 MB / 462.1 MB Notification: Performance of SimCode: time 1.934e-06/0.8606, allocations: 3.469 kB / 0.5524 GB, free: 126 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8673/1.728, allocations: 60.49 MB / 0.6114 GB, free: 67.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.12/21.85, allocations: 13.12 kB / 0.6115 GB, free: 67.11 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1)