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.0008653/0.0008652, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009318/0.0009318, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.219/1.219, allocations: 227.8 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002004/0.0002004, allocations: 4 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.076/0.07622, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.008911/0.08516, allocations: 9.721 MB / 369.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.09011, allocations: 3.218 MB / 372.3 MB, free: 192 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.09114, allocations: 47.75 kB / 372.4 MB, free: 144 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1392/0.2303, allocations: 0.5958 MB / 373 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002224/0.2326, allocations: 0.8093 MB / 373.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006734/0.2332, allocations: 372.2 kB / 374.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003264/0.2365, allocations: 3.905 MB / 378 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002112/0.2386, allocations: 2.187 MB / 380.2 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.2401, allocations: 1.13 MB / 381.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001622/0.2417, allocations: 1.578 MB / 382.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002727/0.242, allocations: 162.9 kB / 383.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006219/0.2426, allocations: 281.1 kB / 383.4 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007496/0.2434, allocations: 0.8262 MB / 384.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001215/0.2446, allocations: 1.502 MB / 385.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003134/0.2477, allocations: 4.865 MB / 390.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2477, allocations: 0 / 390.6 MB, free: 4.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2477, allocations: 5.188 kB / 390.6 MB, free: 4.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.457e-05/0.2478, allocations: 3.938 kB / 390.6 MB, free: 4.582 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.004586/0.2524, allocations: 3.007 MB / 393.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2524, allocations: 9.625 kB / 393.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003782/0.2528, allocations: 370.9 kB / 393.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009364/0.2538, allocations: 392.8 kB / 394.3 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/0.256, allocations: 1.887 MB / 396.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.2562, allocations: 198.6 kB / 396.4 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003321/0.2565, allocations: 267.6 kB / 396.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004784/0.2613, allocations: 3.541 MB / 400.2 MB, free: 14.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.467e-05/0.2614, allocations: 10.41 kB / 400.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/0.2616, allocations: 110.5 kB / 400.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.574e-05/0.2617, allocations: 114.4 kB / 400.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004634/0.2663, allocations: 3.113 MB / 403.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/0.2798, allocations: 10.94 MB / 414.5 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003255/0.2831, allocations: 3.096 MB / 417.6 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002046/0.2851, allocations: 1.394 MB / 419 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002237/0.2854, allocations: 126.4 kB / 419.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001643/0.287, allocations: 1.159 MB / 420.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 2.865e-06/0.287, allocations: 0 / 420.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.01807/0.3051, allocations: 9.012 MB / 429.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.693e-05/0.3052, allocations: 184.1 kB / 429.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/0.3074, allocations: 1.852 MB / 431.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.3076, allocations: 53.7 kB / 431.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008361/0.3084, allocations: 1.201 MB / 432.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003985/0.3088, allocations: 0.5602 MB / 433.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002165/0.309, allocations: 177.6 kB / 433.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.538e-05/0.3091, allocations: 301.1 kB / 433.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.3106, allocations: 1.007 MB / 434.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.3123, allocations: 1.45 MB / 436 MB, free: 10.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003137/0.3154, allocations: 2.478 MB / 438.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.3155, allocations: 4 kB / 438.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005005/0.3205, allocations: 3.354 MB / 441.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.3205, allocations: 12.06 kB / 441.9 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.3205, allocations: 12 kB / 441.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/0.3223, allocations: 0.8722 MB / 442.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.3235, allocations: 343.3 kB / 443.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00999/0.3335, allocations: 9.565 MB / 452.7 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.3348, allocations: 143.9 kB / 452.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.335, allocations: 79.92 kB / 452.9 MB, free: 8.691 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.001412/0.3364, allocations: 0.9292 MB / 453.8 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.3367, allocations: 205.5 kB / 454 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004974/0.3417, allocations: 3.131 MB / 457.1 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.3417, allocations: 20 kB / 457.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3417, allocations: 4 kB / 457.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.3417, allocations: 15.95 kB / 457.2 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009085/0.3508, allocations: 6.31 MB / 463.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.3508, allocations: 0 / 463.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008528/0.3517, allocations: 215.7 kB / 463.7 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/0.3538, allocations: 0.9286 MB / 464.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.3539, allocations: 36.17 kB / 464.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.3647, allocations: 11.03 MB / 475.7 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3647, allocations: 0 / 475.7 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006372/0.3711, allocations: 4.54 MB / 480.2 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008077/0.3719, allocations: 0.4984 MB / 480.7 MB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/0.3722, allocations: 39.94 kB / 480.8 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009933/0.3732, allocations: 115.9 kB / 480.9 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003772/0.3736, allocations: 196.9 kB / 481.1 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.594e-05/0.3737, allocations: 47.98 kB / 481.1 MB, free: 11.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001629/0.3753, allocations: 1.267 MB / 482.4 MB, free: 10.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3753, allocations: 0 / 482.4 MB, free: 10.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001747/0.3771, allocations: 0.6328 MB / 483 MB, free: 9.828 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.006904/0.384, allocations: 5.198 MB / 488.2 MB, free: 4.559 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004531/0.3885, allocations: 3.285 MB / 491.5 MB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3885, allocations: 3.938 kB / 491.5 MB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002957/0.3915, allocations: 2.262 MB / 493.8 MB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/0.3941, allocations: 0.5483 MB / 494.3 MB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03476/0.4289, allocations: 26.13 MB / 0.5083 GB, free: 2.445 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001705/0.4306, allocations: 2.188 MB / 0.5104 GB, free: 224 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001231/0.4319, allocations: 453.6 kB / 0.5108 GB, free: 15.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/0.433, allocations: 1.007 MB / 0.5118 GB, free: 14.77 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.433, allocations: 0 / 0.5118 GB, free: 14.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.206/0.6391, allocations: 56.22 MB / 0.5667 GB, free: 124.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/0.6393, allocations: 238.5 kB / 0.5669 GB, free: 124.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/3.327, allocations: 4 kB / 0.567 GB, free: 124.1 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)