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.0008457/0.0008456, allocations: 96.64 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008416/0.0008416, allocations: 195.3 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002688/0.0002689, allocations: 4 kB / 306.8 MB, free: 1.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 51.49 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.009704/0.1274, allocations: 9.153 MB / 367.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005807/0.1333, allocations: 3.075 MB / 370.5 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.1343, allocations: 43.81 kB / 370.6 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.1357, allocations: 0.563 MB / 371.2 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00225/0.138, allocations: 0.7614 MB / 371.9 MB, free: 312 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000824/0.1388, allocations: 259.6 kB / 372.2 MB, free: 52 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1972/0.336, allocations: 3.493 MB / 375.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002713/0.3388, allocations: 1.753 MB / 377.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00272/0.3415, allocations: 1.121 MB / 378.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002925/0.3445, allocations: 1.513 MB / 380 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000453/0.3449, allocations: 162.6 kB / 380.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.346, allocations: 244.7 kB / 380.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.3471, allocations: 0.8284 MB / 381.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.3482, allocations: 0.6126 MB / 381.9 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005314/0.3535, allocations: 4.169 MB / 386.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3536, allocations: 0 / 386.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3536, allocations: 4 kB / 386.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001245/0.3537, allocations: 1.219 kB / 386.1 MB, free: 7.84 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.007204/0.3609, allocations: 3.027 MB / 389.1 MB, free: 6.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.361, allocations: 10.16 kB / 389.1 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/0.362, allocations: 368.8 kB / 389.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001507/0.3635, allocations: 395.8 kB / 389.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.367, allocations: 1.807 MB / 391.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.3671, allocations: 199.3 kB / 391.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004274/0.3676, allocations: 257.4 kB / 392.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006385/0.374, allocations: 3.528 MB / 395.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.697e-05/0.3741, allocations: 3.688 kB / 395.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002295/0.3743, allocations: 107 kB / 395.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001008/0.3744, allocations: 113.5 kB / 395.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005115/0.3795, allocations: 3.1 MB / 398.9 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01795/0.3975, allocations: 10.93 MB / 409.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003665/0.4012, allocations: 3.085 MB / 413 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/0.4034, allocations: 1.39 MB / 414.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003006/0.4037, allocations: 132.5 kB / 414.5 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001878/0.4056, allocations: 1.16 MB / 415.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.106e-06/0.4056, allocations: 0 / 415.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02051/0.4261, allocations: 8.919 MB / 424.6 MB, free: 7.562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.4263, allocations: 176.2 kB / 424.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/0.43, allocations: 1.824 MB / 426.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003838/0.4305, allocations: 57.7 kB / 426.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001787/0.4323, allocations: 1.194 MB / 427.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009456/0.4332, allocations: 0.5637 MB / 428.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.4334, allocations: 43.94 kB / 428.4 MB, free: 3.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002264/0.4336, allocations: 377.9 kB / 428.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.4354, allocations: 1.007 MB / 429.8 MB, free: 2.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/0.4374, allocations: 1.435 MB / 431.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/0.4392, allocations: 1.174 MB / 432.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.4393, allocations: 4 kB / 432.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006179/0.4454, allocations: 3.33 MB / 435.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.4455, allocations: 19.11 kB / 435.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/0.4455, allocations: 12 kB / 435.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/0.4476, allocations: 0.8767 MB / 436.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.449, allocations: 335.4 kB / 437 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/0.4616, allocations: 9.575 MB / 446.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/0.4642, allocations: 151.8 kB / 446.7 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.4644, allocations: 68 kB / 446.8 MB, free: 0.7383 MB / 350.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 ($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],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,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 (185): * Single equations (assignments): 180 * 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%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002336/0.4667, allocations: 0.9286 MB / 447.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005811/0.4673, allocations: 201.6 kB / 447.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00564/0.4729, allocations: 3.119 MB / 451 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/0.473, allocations: 23.95 kB / 451 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.473, allocations: 8 kB / 451 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/0.473, allocations: 7.969 kB / 451 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.4851, allocations: 6.29 MB / 457.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.4852, allocations: 0 / 457.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009459/0.4861, allocations: 215.7 kB / 457.5 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002312/0.4884, allocations: 0.9212 MB / 458.5 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.4886, allocations: 35.98 kB / 458.5 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01341/0.502, allocations: 11 MB / 469.5 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5021, allocations: 0 / 469.5 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0078/0.5099, allocations: 4.524 MB / 474 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/0.5114, allocations: 0.4984 MB / 474.5 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003178/0.5118, allocations: 40 kB / 474.6 MB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5128, allocations: 115.9 kB / 474.7 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005284/0.5133, allocations: 200.9 kB / 474.9 MB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.5134, allocations: 47.98 kB / 474.9 MB, free: 3.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.5157, allocations: 1.248 MB / 476.2 MB, free: 2.609 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.953e-06/0.5157, allocations: 4 kB / 476.2 MB, free: 2.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003206/0.5189, allocations: 0.6385 MB / 476.8 MB, free: 1.969 MB / 382.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 (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%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008297/0.5273, allocations: 5.149 MB / 482 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005725/0.533, allocations: 3.263 MB / 485.2 MB, free: 9.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.533, allocations: 0.5625 kB / 485.2 MB, free: 9.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003633/0.5367, allocations: 2.258 MB / 487.5 MB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003307/0.54, allocations: 0.5478 MB / 488 MB, free: 6.543 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0395/0.5795, allocations: 17.92 MB / 0.4941 GB, free: 3.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/0.582, allocations: 2.184 MB / 0.4962 GB, free: 1.371 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001858/0.5839, allocations: 461.5 kB / 0.4967 GB, free: 0.918 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001542/0.5854, allocations: 1.003 MB / 0.4976 GB, free: 15.91 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5854, allocations: 0 / 0.4976 GB, free: 15.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.326/0.9114, allocations: 55.3 MB / 0.5516 GB, free: 141.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/0.9116, allocations: 235.5 kB / 0.5519 GB, free: 141.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.202/4.114, allocations: 0 / 0.5519 GB, free: 141.2 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat