Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008654/0.0008652, allocations: 101.9 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002661, allocations: 7.984 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1329, allocations: 51.51 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.01127/0.1442, allocations: 8.607 MB / 366.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009018/0.1533, allocations: 2.903 MB / 369.8 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003057/0.1564, allocations: 43.81 kB / 369.9 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003007/0.1595, allocations: 0.5086 MB / 370.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004101/0.1636, allocations: 0.633 MB / 371 MB, free: 1.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001671/0.1653, allocations: 247.7 kB / 371.3 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2554/0.4207, allocations: 2.466 MB / 373.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002505/0.4233, allocations: 1.22 MB / 374.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00224/0.4256, allocations: 0.8347 MB / 375.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002696/0.4283, allocations: 1.089 MB / 376.9 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004964/0.4288, allocations: 123 kB / 377 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001013/0.4298, allocations: 205.7 kB / 377.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007919/0.4306, allocations: 0.5876 MB / 377.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008747/0.4315, allocations: 460.3 kB / 378.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00427/0.4358, allocations: 2.918 MB / 381.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.4358, allocations: 0 / 381.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4358, allocations: 2.188 kB / 381.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001245/0.4359, allocations: 0 / 381.1 MB, free: 9.352 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.005906/0.4419, allocations: 2.212 MB / 383.4 MB, free: 8.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.371e-05/0.4419, allocations: 12.84 kB / 383.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007949/0.4427, allocations: 279.3 kB / 383.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.4438, allocations: 276.9 kB / 383.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002933/0.4468, allocations: 1.275 MB / 385.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.447, allocations: 141.1 kB / 385.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003733/0.4474, allocations: 194 kB / 385.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004852/0.4522, allocations: 2.406 MB / 387.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.332e-05/0.4523, allocations: 18.16 kB / 387.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002034/0.4525, allocations: 77.91 kB / 388 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001597/0.4527, allocations: 95.23 kB / 388.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003695/0.4564, allocations: 1.953 MB / 390.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.4677, allocations: 7.886 MB / 397.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.4692, allocations: 1.226 MB / 399.2 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.4707, allocations: 0.9484 MB / 400.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002861/0.471, allocations: 118.3 kB / 400.2 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.471, allocations: 47.44 kB / 400.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=95): time 3.286e-06/0.4711, allocations: 3.938 kB / 400.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.01217/0.4832, allocations: 5.925 MB / 406.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.4833, allocations: 64.41 kB / 406.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/0.4853, allocations: 1.296 MB / 407.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.4854, allocations: 49.7 kB / 407.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007073/0.4861, allocations: 0.92 MB / 408.5 MB, free: 7.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003082/0.4864, allocations: 387.2 kB / 408.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.555e-05/0.4865, allocations: 28 kB / 408.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.4867, allocations: 357.9 kB / 409.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009599/0.4876, allocations: 0.6325 MB / 409.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.4888, allocations: 1.004 MB / 410.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.49, allocations: 0.7909 MB / 411.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.4901, allocations: 4 kB / 411.7 MB, free: 4.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003858/0.4939, allocations: 2.245 MB / 414 MB, free: 2.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.494, allocations: 8 kB / 414 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/0.494, allocations: 16 kB / 414 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.4952, allocations: 488.7 kB / 414.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.4962, allocations: 309.6 kB / 414.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00662/0.5029, allocations: 6.535 MB / 421.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001528/0.5044, allocations: 91.77 kB / 421.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.5046, allocations: 63.91 kB / 421.5 MB, free: 10.38 MB / 334.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: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00154/0.5062, allocations: 0.5995 MB / 422.1 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004845/0.5067, allocations: 146.2 kB / 422.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003461/0.5101, allocations: 1.969 MB / 424.2 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.5102, allocations: 12 kB / 424.2 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.5102, allocations: 7.938 kB / 424.2 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.5102, allocations: 7.969 kB / 424.2 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007279/0.5175, allocations: 4.125 MB / 428.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5175, allocations: 4.031 kB / 428.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007826/0.5183, allocations: 189.3 kB / 428.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001363/0.5197, allocations: 0.5387 MB / 429.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.034e-05/0.5198, allocations: 39.94 kB / 429.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007334/0.5271, allocations: 8.026 MB / 437.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.5272, allocations: 7.969 kB / 437.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004327/0.5315, allocations: 2.851 MB / 440 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007651/0.5323, allocations: 357.7 kB / 440.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.5325, allocations: 31.98 kB / 440.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000714/0.5332, allocations: 71.92 kB / 440.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.5334, allocations: 84.88 kB / 440.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.947e-05/0.5335, allocations: 35.98 kB / 440.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.5348, allocations: 0.8801 MB / 441.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5348, allocations: 0 / 441.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001584/0.5364, allocations: 443.9 kB / 441.9 MB, free: 5.238 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (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,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004383/0.5408, allocations: 3.442 MB / 445.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003267/0.5441, allocations: 2.233 MB / 447.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.5441, allocations: 0 / 447.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00211/0.5462, allocations: 1.502 MB / 449 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002079/0.5483, allocations: 411 kB / 449.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02312/0.5714, allocations: 12.28 MB / 461.7 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.5728, allocations: 1.65 MB / 463.4 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001255/0.5741, allocations: 324.8 kB / 463.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009524/0.5751, allocations: 0.718 MB / 464.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5751, allocations: 0 / 464.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.064/0.6391, allocations: 36.79 MB / 0.4894 GB, free: 9.582 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.6393, allocations: 238.5 kB / 0.4897 GB, free: 9.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.654/3.293, allocations: 0 / 0.4897 GB, free: 9.34 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat