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.001008/0.001008, allocations: 96.64 kB / 16.3 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.001038/0.001038, allocations: 182 kB / 17.2 MB, free: 5.906 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.465/1.465, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002833/0.0002834, allocations: 6.812 kB / 300.8 MB, free: 6.402 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1278, allocations: 50.42 MB / 351.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01071/0.1385, allocations: 8.344 MB / 359.6 MB, free: 3.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006921/0.1455, allocations: 3.115 MB / 362.7 MB, free: 304 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.1476, allocations: 43.81 kB / 362.7 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.1499, allocations: 0.5752 MB / 363.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003211/0.1531, allocations: 0.7399 MB / 364 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.1544, allocations: 251.6 kB / 364.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004081/0.1585, allocations: 2.133 MB / 366.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00302/0.1615, allocations: 1.751 MB / 368.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002023/0.1636, allocations: 1.016 MB / 369.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002621/0.1662, allocations: 1.296 MB / 370.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008385/0.167, allocations: 160 kB / 370.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001336/0.1684, allocations: 227.9 kB / 370.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001446/0.1699, allocations: 0.7828 MB / 371.6 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001308/0.1712, allocations: 0.6095 MB / 372.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004482/0.1757, allocations: 4.11 MB / 376.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1757, allocations: 3.938 kB / 376.4 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1757, allocations: 0 / 376.4 MB, free: 2.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001533/0.1759, allocations: 0 / 376.4 MB, free: 2.535 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.006668/0.1825, allocations: 3.017 MB / 379.4 MB, free: 15.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.1826, allocations: 12.03 kB / 379.4 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000682/0.1833, allocations: 366.8 kB / 379.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009544/0.1843, allocations: 348 kB / 380.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003679/0.1879, allocations: 1.82 MB / 381.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001758/0.1881, allocations: 201 kB / 382.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003792/0.1885, allocations: 255.9 kB / 382.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006148/0.1947, allocations: 3.504 MB / 385.9 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.824e-05/0.1948, allocations: 7.938 kB / 385.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002709/0.195, allocations: 104 kB / 386 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/0.1952, allocations: 116.9 kB / 386.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005636/0.2008, allocations: 3.091 MB / 389.2 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01965/0.2205, allocations: 10.91 MB / 400.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003765/0.2243, allocations: 3.068 MB / 403.2 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002792/0.2246, allocations: 138.5 kB / 403.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001804/0.2264, allocations: 1.156 MB / 404.4 MB, free: 5.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.887e-06/0.2264, allocations: 0 / 404.4 MB, free: 5.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02073/0.2472, allocations: 8.93 MB / 413.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.2473, allocations: 176.2 kB / 413.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002562/0.2499, allocations: 1.781 MB / 415.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001665/0.2501, allocations: 57.7 kB / 415.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.2511, allocations: 1.188 MB / 416.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005398/0.2517, allocations: 0.5662 MB / 417.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.72e-05/0.2518, allocations: 36 kB / 417.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.252, allocations: 381.9 kB / 417.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.2536, allocations: 1.011 MB / 418.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/0.2555, allocations: 1.434 MB / 420 MB, free: 5.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.2573, allocations: 1.181 MB / 421.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.2573, allocations: 4 kB / 421.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006335/0.2637, allocations: 3.35 MB / 424.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.2637, allocations: 8 kB / 424.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.421e-05/0.2638, allocations: 15.98 kB / 424.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002133/0.2659, allocations: 0.885 MB / 425.4 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2491/0.5151, allocations: 332.9 kB / 425.8 MB, free: 62.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/0.5277, allocations: 9.835 MB / 435.6 MB, free: 58.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/0.53, allocations: 145.1 kB / 435.7 MB, free: 58.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/0.5301, allocations: 70.38 kB / 435.8 MB, free: 58.39 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.002142/0.5323, allocations: 0.9233 MB / 436.7 MB, free: 58.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004987/0.5328, allocations: 206.4 kB / 436.9 MB, free: 58.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006598/0.5394, allocations: 3.128 MB / 440.1 MB, free: 57.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.5395, allocations: 15.97 kB / 440.1 MB, free: 57.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.5395, allocations: 7.406 kB / 440.1 MB, free: 57.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.055e-05/0.5395, allocations: 10.17 kB / 440.1 MB, free: 57.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.5504, allocations: 6.265 MB / 446.4 MB, free: 55.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.5504, allocations: 2.375 kB / 446.4 MB, free: 55.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008721/0.5513, allocations: 214.7 kB / 446.6 MB, free: 55.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00222/0.5535, allocations: 0.9289 MB / 447.5 MB, free: 54.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.5536, allocations: 39.73 kB / 447.5 MB, free: 54.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/0.5642, allocations: 11.32 MB / 458.9 MB, free: 45.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.5643, allocations: 7.938 kB / 458.9 MB, free: 45.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00585/0.5701, allocations: 4.699 MB / 463.6 MB, free: 40.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.5714, allocations: 0.4906 MB / 464.1 MB, free: 40.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.5717, allocations: 39.98 kB / 464.1 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009176/0.5726, allocations: 115.9 kB / 464.2 MB, free: 39.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004286/0.5731, allocations: 200.9 kB / 464.4 MB, free: 39.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.396e-05/0.5732, allocations: 47.98 kB / 464.5 MB, free: 39.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0015/0.5747, allocations: 1.212 MB / 465.7 MB, free: 38.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5747, allocations: 0 / 465.7 MB, free: 38.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001896/0.5766, allocations: 0.6361 MB / 466.3 MB, free: 37.84 MB / 350.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.005953/0.5825, allocations: 5.902 MB / 472.2 MB, free: 31.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00435/0.5869, allocations: 3.281 MB / 475.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.5869, allocations: 0 / 475.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/0.5897, allocations: 2.265 MB / 477.7 MB, free: 26.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/0.5922, allocations: 0.5146 MB / 478.3 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03023/0.6224, allocations: 24.85 MB / 0.4913 GB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.6245, allocations: 2.234 MB / 0.4935 GB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.6263, allocations: 461.4 kB / 0.4939 GB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00145/0.6278, allocations: 0.9991 MB / 0.4949 GB, free: 11.99 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.6278, allocations: 4 kB / 0.4949 GB, free: 11.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0955/0.7233, allocations: 54.68 MB / 0.5483 GB, free: 5.848 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.7236, allocations: 229.1 kB / 0.5485 GB, free: 5.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.488/4.212, allocations: 3.938 kB / 0.5485 GB, free: 5.594 MB / 414.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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat