Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001285/0.001285, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 67.75 kB / 306.4 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09606, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01063/0.1067, allocations: 10.27 MB / 367.2 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005208/0.112, allocations: 3.249 MB / 370.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.1132, allocations: 51.75 kB / 370.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1474/0.2606, allocations: 0.612 MB / 371.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002756/0.2634, allocations: 0.7995 MB / 371.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.2645, allocations: 377.9 kB / 372.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004576/0.2691, allocations: 3.905 MB / 376.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002943/0.272, allocations: 2.203 MB / 378.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.2744, allocations: 1.289 MB / 379.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003276/0.2777, allocations: 1.774 MB / 381.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001002/0.2787, allocations: 232.6 kB / 381.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001939/0.2807, allocations: 348.6 kB / 382 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.2824, allocations: 0.9355 MB / 382.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00367/0.2861, allocations: 1.598 MB / 384.5 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004772/0.2908, allocations: 5.024 MB / 389.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2909, allocations: 1.094 kB / 389.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.2909, allocations: 0 / 389.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000106/0.291, allocations: 0 / 389.5 MB, free: 4.633 MB / 302.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.006745/0.2977, allocations: 3.535 MB / 393.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.2978, allocations: 13.25 kB / 393.1 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004818/0.2983, allocations: 365.6 kB / 393.4 MB, free: 1.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/0.2995, allocations: 385.4 kB / 393.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002805/0.3023, allocations: 1.883 MB / 395.7 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.3024, allocations: 196 kB / 395.9 MB, free: 400 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003484/0.3028, allocations: 266.9 kB / 396.2 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005264/0.308, allocations: 3.535 MB / 399.7 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.454e-05/0.3081, allocations: 3.281 kB / 399.7 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000256/0.3084, allocations: 103.6 kB / 399.8 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.3085, allocations: 116.7 kB / 399.9 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005194/0.3137, allocations: 3.091 MB / 403 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01734/0.3311, allocations: 10.87 MB / 413.9 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003378/0.3345, allocations: 3.079 MB / 416.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002071/0.3366, allocations: 1.39 MB / 418.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002397/0.3368, allocations: 125 kB / 418.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001658/0.3385, allocations: 1.152 MB / 419.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 4.669e-06/0.3385, allocations: 0 / 419.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.01966/0.3582, allocations: 8.879 MB / 428.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.3583, allocations: 179.7 kB / 428.7 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002699/0.361, allocations: 1.852 MB / 430.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001527/0.3612, allocations: 57.7 kB / 430.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.3623, allocations: 1.198 MB / 431.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004801/0.3628, allocations: 0.5619 MB / 432.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005893/0.3634, allocations: 351.3 kB / 432.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3635, allocations: 305.7 kB / 433 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/0.3651, allocations: 1.003 MB / 434 MB, free: 11.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.3669, allocations: 1.436 MB / 435.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003285/0.3702, allocations: 2.454 MB / 437.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.3702, allocations: 4 kB / 437.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005422/0.3757, allocations: 3.322 MB / 441.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.3757, allocations: 12 kB / 441.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.757e-05/0.3758, allocations: 12 kB / 441.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/0.3778, allocations: 0.8888 MB / 442.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.379, allocations: 339.4 kB / 442.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/0.3895, allocations: 9.543 MB / 452 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.3913, allocations: 123.9 kB / 452.1 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/0.3915, allocations: 71.98 kB / 452.2 MB, free: 8.672 MB / 366.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.001516/0.393, allocations: 0.933 MB / 453.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003405/0.3934, allocations: 205.5 kB / 453.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/0.3985, allocations: 3.099 MB / 456.4 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.3986, allocations: 19.98 kB / 456.4 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.726e-05/0.3986, allocations: 8 kB / 456.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.3986, allocations: 12.16 kB / 456.4 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01029/0.4089, allocations: 6.27 MB / 462.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.409, allocations: 7.938 kB / 462.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009208/0.4099, allocations: 211.7 kB / 462.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002238/0.4121, allocations: 0.9253 MB / 463.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.4123, allocations: 43.97 kB / 463.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.424, allocations: 10.99 MB / 474.9 MB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.424, allocations: 4 kB / 474.9 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0073/0.4313, allocations: 4.509 MB / 479.4 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/0.4329, allocations: 0.4945 MB / 479.9 MB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003655/0.4332, allocations: 39.92 kB / 479.9 MB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.4343, allocations: 103.9 kB / 480 MB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005882/0.4349, allocations: 201 kB / 480.2 MB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.435, allocations: 43.98 kB / 480.3 MB, free: 11.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002024/0.4371, allocations: 1.267 MB / 481.5 MB, free: 10.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.4371, allocations: 0 / 481.5 MB, free: 10.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002304/0.4394, allocations: 0.6407 MB / 482.2 MB, free: 9.941 MB / 398.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.007172/0.4466, allocations: 5.158 MB / 487.3 MB, free: 4.715 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004829/0.4514, allocations: 3.249 MB / 490.6 MB, free: 1.383 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4514, allocations: 1.875 kB / 490.6 MB, free: 1.383 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003219/0.4547, allocations: 2.252 MB / 492.8 MB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002681/0.4574, allocations: 0.5415 MB / 493.4 MB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04187/0.4992, allocations: 25.93 MB / 0.5071 GB, free: 2.863 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001943/0.5012, allocations: 2.2 MB / 0.5093 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001353/0.5026, allocations: 457.6 kB / 0.5097 GB, free: 184 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.5039, allocations: 1.014 MB / 0.5107 GB, free: 15.21 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5039, allocations: 4 kB / 0.5107 GB, free: 15.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2328/0.7367, allocations: 57.11 MB / 0.5665 GB, free: 125 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001996/0.737, allocations: 240.9 kB / 0.5667 GB, free: 124.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.856/3.593, allocations: 3.375 kB / 0.5667 GB, free: 124.8 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1)