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.001495/0.001495, allocations: 116.9 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.47 kB / 306.6 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 50.55 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01181/0.1191, allocations: 10.26 MB / 367.4 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006116/0.1253, allocations: 3.229 MB / 370.6 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001687/0.127, allocations: 55.75 kB / 370.6 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.1292, allocations: 0.6099 MB / 371.3 MB, free: 84 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1871/0.3163, allocations: 0.8037 MB / 372.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.3174, allocations: 375.8 kB / 372.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004747/0.3222, allocations: 3.396 MB / 375.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003042/0.3253, allocations: 2.62 MB / 378.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00243/0.3277, allocations: 1.522 MB / 380 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00292/0.3307, allocations: 1.903 MB / 381.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008723/0.3315, allocations: 397.8 kB / 382.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/0.3331, allocations: 0.4886 MB / 382.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001149/0.3343, allocations: 1.105 MB / 383.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002837/0.3371, allocations: 1.779 MB / 385.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006328/0.3435, allocations: 5.181 MB / 390.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3435, allocations: 0 / 390.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3435, allocations: 5.156 kB / 390.8 MB, free: 4.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002105/0.3437, allocations: 0 / 390.8 MB, free: 4.211 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.01027/0.354, allocations: 3.536 MB / 394.3 MB, free: 1.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3541, allocations: 9.281 kB / 394.4 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005955/0.3547, allocations: 366.5 kB / 394.7 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001217/0.3559, allocations: 384.3 kB / 395.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002933/0.3589, allocations: 1.885 MB / 397 MB, free: 56 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002191/0.3591, allocations: 212.6 kB / 397.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000374/0.3595, allocations: 260.8 kB / 397.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0061/0.3656, allocations: 3.528 MB / 401 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.96e-05/0.3657, allocations: 9.312 kB / 401 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000255/0.366, allocations: 104 kB / 401.1 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/0.3661, allocations: 112.9 kB / 401.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005692/0.3718, allocations: 3.091 MB / 404.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01912/0.3909, allocations: 10.86 MB / 415.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003507/0.3945, allocations: 3.079 MB / 418.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002273/0.3968, allocations: 1.39 MB / 419.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002741/0.3971, allocations: 122.4 kB / 419.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001923/0.399, allocations: 1.15 MB / 420.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.877e-06/0.399, allocations: 0 / 420.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.0211/0.4201, allocations: 8.889 MB / 429.8 MB, free: 152 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.4203, allocations: 172.2 kB / 429.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003833/0.4241, allocations: 1.852 MB / 431.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002313/0.4244, allocations: 57.7 kB / 431.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.4257, allocations: 1.207 MB / 433.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005417/0.4263, allocations: 0.5578 MB / 433.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006489/0.427, allocations: 351.3 kB / 434 MB, free: 11.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.054e-05/0.4271, allocations: 305.1 kB / 434.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/0.4287, allocations: 0.9994 MB / 435.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.4306, allocations: 1.435 MB / 436.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003426/0.434, allocations: 2.451 MB / 439.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.4341, allocations: 8 kB / 439.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005771/0.4398, allocations: 3.33 MB / 442.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.4399, allocations: 12 kB / 442.5 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.4399, allocations: 8.531 kB / 442.5 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/0.4421, allocations: 0.8884 MB / 443.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.4433, allocations: 339.4 kB / 443.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/0.4552, allocations: 10.44 MB / 454.1 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/0.4573, allocations: 127.9 kB / 454.3 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002999/0.4576, allocations: 71.98 kB / 454.3 MB, free: 6.766 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.001941/0.4596, allocations: 0.937 MB / 455.3 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005266/0.4601, allocations: 201.7 kB / 455.5 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005531/0.4657, allocations: 3.111 MB / 458.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.4657, allocations: 19.94 kB / 458.6 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/0.4657, allocations: 8 kB / 458.6 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.775e-05/0.4657, allocations: 7.969 kB / 458.6 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.4778, allocations: 6.267 MB / 464.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4778, allocations: 0 / 464.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009138/0.4787, allocations: 211.7 kB / 465.1 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002391/0.4811, allocations: 0.9293 MB / 466 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001807/0.4813, allocations: 47.91 kB / 466.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/0.4943, allocations: 12.03 MB / 478.1 MB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4944, allocations: 8 kB / 478.1 MB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007775/0.5021, allocations: 4.509 MB / 482.6 MB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.5035, allocations: 498.4 kB / 483.1 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005709/0.5041, allocations: 39.98 kB / 483.1 MB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.5054, allocations: 103.9 kB / 483.2 MB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005059/0.506, allocations: 196.9 kB / 483.4 MB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.5061, allocations: 47.98 kB / 483.5 MB, free: 8.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002441/0.5085, allocations: 1.263 MB / 484.7 MB, free: 7.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5086, allocations: 4 kB / 484.8 MB, free: 7.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002678/0.5112, allocations: 0.6367 MB / 485.4 MB, free: 6.98 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.008437/0.5197, allocations: 5.17 MB / 490.6 MB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007961/0.5277, allocations: 4.237 MB / 494.8 MB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5277, allocations: 0 / 494.8 MB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003591/0.5313, allocations: 2.25 MB / 497 MB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003208/0.5345, allocations: 0.5788 MB / 497.6 MB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04649/0.581, allocations: 25.96 MB / 0.5113 GB, free: 14.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/0.5836, allocations: 2.184 MB / 0.5134 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001711/0.5854, allocations: 465.6 kB / 0.5139 GB, free: 12.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00152/0.5869, allocations: 1.011 MB / 0.5149 GB, free: 11.16 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5869, allocations: 0 / 0.5149 GB, free: 11.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2625/0.8494, allocations: 58.52 MB / 0.572 GB, free: 121.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/0.8496, allocations: 244.9 kB / 0.5723 GB, free: 121.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.132/3.981, allocations: 0 / 0.5723 GB, free: 121.5 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)