Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009753/0.0009752, allocations: 96.91 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 198 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003352, allocations: 4 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1752, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.009125/0.1844, allocations: 7.197 MB / 365.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006287/0.1908, allocations: 2.784 MB / 368.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.1921, allocations: 35.81 kB / 368.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.1937, allocations: 0.5053 MB / 368.7 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002273/0.196, allocations: 0.5997 MB / 369.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000786/0.1968, allocations: 203.7 kB / 369.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002635/0.1994, allocations: 1.462 MB / 371 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2507/0.4502, allocations: 1.219 MB / 372.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.4518, allocations: 0.7071 MB / 372.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001523/0.4533, allocations: 0.9198 MB / 373.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002948/0.4536, allocations: 112.4 kB / 373.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006174/0.4543, allocations: 183.5 kB / 374.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007977/0.4551, allocations: 0.545 MB / 374.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007008/0.4558, allocations: 438.5 kB / 375.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004014/0.4598, allocations: 2.797 MB / 377.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.4598, allocations: 0 / 377.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4598, allocations: 0 / 377.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001106/0.4599, allocations: 0 / 377.9 MB, free: 9.711 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.006235/0.4662, allocations: 2.139 MB / 380 MB, free: 8.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.4662, allocations: 8.531 kB / 380 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001005/0.4673, allocations: 265.5 kB / 380.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.4684, allocations: 255.8 kB / 380.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/0.4714, allocations: 1.242 MB / 381.8 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.4715, allocations: 134.1 kB / 381.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003259/0.4719, allocations: 187.6 kB / 382.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005714/0.4776, allocations: 2.351 MB / 384.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.761e-05/0.4777, allocations: 6.688 kB / 384.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002522/0.478, allocations: 74.53 kB / 384.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002349/0.4782, allocations: 92.53 kB / 384.6 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006025/0.4843, allocations: 1.978 MB / 386.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.4973, allocations: 7.129 MB / 393.7 MB, free: 3.402 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.4991, allocations: 1.282 MB / 395 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002358/0.4994, allocations: 123.5 kB / 395.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.4994, allocations: 44 kB / 395.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 3.086e-06/0.4994, allocations: 0 / 395.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=107): time 0.0161/0.5155, allocations: 6.791 MB / 402 MB, free: 14.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.5156, allocations: 64.41 kB / 402 MB, free: 14.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.5175, allocations: 1.16 MB / 403.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.5176, allocations: 49.7 kB / 403.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000601/0.5182, allocations: 0.8616 MB / 404.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.5185, allocations: 382.7 kB / 404.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.79e-05/0.5186, allocations: 24 kB / 404.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.5188, allocations: 359.9 kB / 404.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009867/0.5198, allocations: 0.6584 MB / 405.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.521, allocations: 0.9618 MB / 406.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.5222, allocations: 0.8033 MB / 407.3 MB, free: 8.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.5222, allocations: 4 kB / 407.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.003856/0.5261, allocations: 2.353 MB / 409.6 MB, free: 6.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.5261, allocations: 11.94 kB / 409.6 MB, free: 6.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.5261, allocations: 8 kB / 409.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.5275, allocations: 0.6013 MB / 410.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009664/0.5285, allocations: 267.6 kB / 410.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007226/0.5358, allocations: 6.434 MB / 416.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.5372, allocations: 87.97 kB / 417 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.771e-05/0.5373, allocations: 48 kB / 417.1 MB, free: 14.85 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001343/0.5387, allocations: 0.5989 MB / 417.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.539, allocations: 142.3 kB / 417.8 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003715/0.5427, allocations: 2.166 MB / 420 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.5427, allocations: 15.98 kB / 420 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.527e-06/0.5427, allocations: 4 kB / 420 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.5427, allocations: 5.734 kB / 420 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007134/0.5499, allocations: 4.294 MB / 424.3 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5499, allocations: 1.328 kB / 424.3 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007186/0.5506, allocations: 175.8 kB / 424.5 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001597/0.5523, allocations: 0.6551 MB / 425.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.891e-05/0.5524, allocations: 27.98 kB / 425.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008364/0.5607, allocations: 7.926 MB / 433.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5608, allocations: 7.953 kB / 433.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005021/0.5658, allocations: 3.219 MB / 436.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.5669, allocations: 351.2 kB / 436.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.5671, allocations: 24.12 kB / 436.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007778/0.5679, allocations: 87.91 kB / 436.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002354/0.5681, allocations: 84.81 kB / 436.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.322e-05/0.5682, allocations: 35.98 kB / 436.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00119/0.5694, allocations: 0.7993 MB / 437.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5694, allocations: 0 / 437.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001539/0.5709, allocations: 428 kB / 438.1 MB, free: 9.199 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.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 3 * 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: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005285/0.5762, allocations: 4.427 MB / 442.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003522/0.5798, allocations: 2.221 MB / 444.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.5798, allocations: 4.062 kB / 444.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002298/0.5821, allocations: 1.498 MB / 446.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.584, allocations: 348.2 kB / 446.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02325/0.6072, allocations: 17.62 MB / 464.2 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/0.6086, allocations: 1.673 MB / 465.9 MB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00107/0.6096, allocations: 299.8 kB / 466.2 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008363/0.6105, allocations: 0.6906 MB / 466.9 MB, free: 11.66 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6105, allocations: 0 / 466.9 MB, free: 11.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06265/0.6732, allocations: 35.69 MB / 0.4908 GB, free: 8.391 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.6734, allocations: 233 kB / 0.491 GB, free: 8.141 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.55/3.223, allocations: 5.297 kB / 0.491 GB, free: 8.141 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat