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.001199/0.001199, allocations: 90.67 kB / 16.31 MB, free: 5.66 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.001099/0.001099, allocations: 182.2 kB / 17.21 MB, free: 5.582 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.455/1.455, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002668, allocations: 6.375 kB / 300.9 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1086, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.008807/0.1174, allocations: 9.099 MB / 360.4 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005221/0.1226, allocations: 3.024 MB / 363.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001593/0.1243, allocations: 51.75 kB / 363.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.1258, allocations: 0.5475 MB / 364.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002189/0.128, allocations: 0.7654 MB / 364.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007833/0.1288, allocations: 251.6 kB / 365.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004506/0.1334, allocations: 3.508 MB / 368.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002392/0.1358, allocations: 1.751 MB / 370.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00206/0.1378, allocations: 1.109 MB / 371.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.1402, allocations: 1.51 MB / 373 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002965/0.1406, allocations: 164 kB / 373.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006648/0.1412, allocations: 227.9 kB / 373.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009213/0.1422, allocations: 0.8294 MB / 374.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008203/0.143, allocations: 0.6095 MB / 374.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004245/0.1472, allocations: 4.161 MB / 378.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.1473, allocations: 3.938 kB / 378.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.1473, allocations: 0 / 378.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001393/0.1474, allocations: 0 / 378.9 MB, free: 15.88 MB / 318.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.006397/0.1538, allocations: 3.028 MB / 382 MB, free: 12.78 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.1539, allocations: 12.03 kB / 382 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005421/0.1544, allocations: 366.8 kB / 382.3 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007721/0.1552, allocations: 352 kB / 382.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002871/0.1581, allocations: 1.804 MB / 384.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.1583, allocations: 197 kB / 384.7 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003403/0.1586, allocations: 256 kB / 384.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005658/0.1643, allocations: 3.527 MB / 388.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.403e-05/0.1643, allocations: 7.906 kB / 388.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.1646, allocations: 104 kB / 388.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001157/0.1647, allocations: 112.9 kB / 388.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005233/0.1699, allocations: 3.099 MB / 391.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/0.1866, allocations: 10.95 MB / 402.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003627/0.1903, allocations: 3.075 MB / 405.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.1924, allocations: 1.396 MB / 407.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002656/0.1927, allocations: 126.4 kB / 407.3 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001707/0.1944, allocations: 1.152 MB / 408.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 2.805e-06/0.1945, allocations: 0 / 408.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.0195/0.214, allocations: 8.911 MB / 417.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.2141, allocations: 180.2 kB / 417.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/0.217, allocations: 1.824 MB / 419.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.2171, allocations: 57.7 kB / 419.4 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.2183, allocations: 1.192 MB / 420.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005446/0.2189, allocations: 0.5584 MB / 421.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.873e-05/0.219, allocations: 36 kB / 421.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.2192, allocations: 377.9 kB / 421.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/0.2211, allocations: 1.011 MB / 422.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002024/0.2231, allocations: 1.438 MB / 424 MB, free: 1.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001885/0.225, allocations: 1.169 MB / 425.2 MB, free: 436 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.2251, allocations: 7.938 kB / 425.2 MB, free: 428 kB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.229/0.4541, allocations: 3.333 MB / 428.5 MB, free: 62.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.746e-05/0.4542, allocations: 7.656 kB / 428.6 MB, free: 62.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.252e-05/0.4542, allocations: 12.34 kB / 428.6 MB, free: 62.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/0.4563, allocations: 0.8799 MB / 429.4 MB, free: 62.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/0.4577, allocations: 345 kB / 429.8 MB, free: 62.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/0.4704, allocations: 9.559 MB / 439.3 MB, free: 58.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/0.4727, allocations: 148 kB / 439.5 MB, free: 58.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002017/0.4729, allocations: 67.77 kB / 439.6 MB, free: 58.34 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.002214/0.4751, allocations: 0.9176 MB / 440.5 MB, free: 57.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007984/0.4759, allocations: 208.8 kB / 440.7 MB, free: 57.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005639/0.4816, allocations: 3.118 MB / 443.8 MB, free: 56.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/0.4816, allocations: 15.84 kB / 443.8 MB, free: 56.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.4816, allocations: 7.875 kB / 443.8 MB, free: 56.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.4817, allocations: 9.078 kB / 443.8 MB, free: 56.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00994/0.4916, allocations: 6.29 MB / 450.1 MB, free: 53.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.4917, allocations: 5.328 kB / 450.1 MB, free: 53.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008034/0.4925, allocations: 217.8 kB / 450.3 MB, free: 53.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/0.4944, allocations: 0.923 MB / 451.3 MB, free: 53.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.4946, allocations: 43.47 kB / 451.3 MB, free: 52.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009319/0.5039, allocations: 11 MB / 462.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.504, allocations: 8.062 kB / 462.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006668/0.5106, allocations: 4.525 MB / 466.8 MB, free: 37.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/0.5119, allocations: 0.4917 MB / 467.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005646/0.5125, allocations: 39.98 kB / 467.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.5137, allocations: 119.9 kB / 467.5 MB, free: 36.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004512/0.5142, allocations: 208.9 kB / 467.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.5143, allocations: 40 kB / 467.7 MB, free: 36.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001977/0.5163, allocations: 1.243 MB / 469 MB, free: 34.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5163, allocations: 0 / 469 MB, free: 34.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002617/0.5189, allocations: 0.6393 MB / 469.6 MB, free: 34.34 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.006523/0.5254, allocations: 5.149 MB / 474.7 MB, free: 29.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004898/0.5304, allocations: 3.263 MB / 478 MB, free: 25.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.5304, allocations: 4 kB / 478 MB, free: 25.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003051/0.5335, allocations: 2.255 MB / 480.3 MB, free: 23.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00371/0.5372, allocations: 0.5488 MB / 480.8 MB, free: 22.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03453/0.5718, allocations: 17.9 MB / 498.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002355/0.5742, allocations: 2.184 MB / 0.4892 GB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001667/0.5759, allocations: 457.5 kB / 0.4896 GB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/0.5773, allocations: 0.9991 MB / 0.4906 GB, free: 348 kB / 350.1 MB Notification: Performance of SimCode: time 2.746e-06/0.5773, allocations: 0 / 0.4906 GB, free: 348 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/0.6853, allocations: 55.2 MB / 0.5445 GB, free: 9.688 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.6855, allocations: 231.2 kB / 0.5447 GB, free: 9.441 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.411/4.096, allocations: 0 / 0.5447 GB, free: 9.441 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