Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000847/0.0008469, allocations: 86.31 kB / 16.31 MB, free: 5.684 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.000881/0.000881, allocations: 179.7 kB / 17.21 MB, free: 5.602 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.552/1.552, allocations: 223.2 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002912, allocations: 8 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 50.42 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.008615/0.1245, allocations: 7.798 MB / 359.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005088/0.1297, allocations: 2.658 MB / 361.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009818/0.1307, allocations: 43.81 kB / 361.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.1321, allocations: 0.4894 MB / 362.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001812/0.1339, allocations: 0.5903 MB / 362.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006717/0.1346, allocations: 207.7 kB / 363.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002959/0.1375, allocations: 2.296 MB / 365.4 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001685/0.1392, allocations: 1.227 MB / 366.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.1407, allocations: 0.7704 MB / 367.4 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001539/0.1422, allocations: 1.062 MB / 368.5 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002555/0.1425, allocations: 116 kB / 368.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005522/0.1431, allocations: 179.9 kB / 368.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000683/0.1438, allocations: 0.5802 MB / 369.4 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005327/0.1443, allocations: 436.6 kB / 369.8 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2222/0.3665, allocations: 2.822 MB / 372.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3666, allocations: 0 / 372.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3666, allocations: 0 / 372.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000133/0.3668, allocations: 0 / 372.6 MB, free: 12.65 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.005572/0.3723, allocations: 2.137 MB / 374.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.3724, allocations: 13.06 kB / 374.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006692/0.3731, allocations: 270.5 kB / 375 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009331/0.374, allocations: 247 kB / 375.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.3763, allocations: 1.227 MB / 376.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.3765, allocations: 135.7 kB / 376.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.3768, allocations: 174.9 kB / 376.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005205/0.382, allocations: 2.376 MB / 379.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.158e-05/0.3821, allocations: 10.75 kB / 379.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/0.3823, allocations: 71.59 kB / 379.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001863/0.3825, allocations: 95.2 kB / 379.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004657/0.3872, allocations: 1.967 MB / 381.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.3993, allocations: 7.173 MB / 388.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.4013, allocations: 1.278 MB / 389.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.4028, allocations: 0.8854 MB / 390.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000216/0.4031, allocations: 122 kB / 390.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.4031, allocations: 44.5 kB / 390.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 3.046e-06/0.4031, allocations: 0 / 390.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=104): time 0.01262/0.4157, allocations: 6.194 MB / 397 MB, free: 3.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.4158, allocations: 64.34 kB / 397.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.4173, allocations: 1.205 MB / 398.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.717e-05/0.4174, allocations: 44.77 kB / 398.3 MB, free: 3.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004556/0.4178, allocations: 0.8627 MB / 399.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.4181, allocations: 367.7 kB / 399.5 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/0.4181, allocations: 28.84 kB / 399.6 MB, free: 1.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.4182, allocations: 350.6 kB / 399.9 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008504/0.4191, allocations: 0.6223 MB / 400.5 MB, free: 1.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009533/0.42, allocations: 0.9268 MB / 401.5 MB, free: 488 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.4211, allocations: 0.768 MB / 402.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4211, allocations: 4 kB / 402.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003616/0.4247, allocations: 2.224 MB / 404.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.4248, allocations: 8.25 kB / 404.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.4248, allocations: 12 kB / 404.5 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.4258, allocations: 484.8 kB / 404.9 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009599/0.4268, allocations: 274.7 kB / 405.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006148/0.433, allocations: 6.426 MB / 411.6 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.4343, allocations: 83.92 kB / 411.7 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.4344, allocations: 47.98 kB / 411.8 MB, free: 5.84 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (132): * Single equations (assignments): 127 * 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,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001242/0.4356, allocations: 0.6053 MB / 412.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.436, allocations: 134.3 kB / 412.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003447/0.4394, allocations: 2.035 MB / 414.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.4395, allocations: 15.98 kB / 414.6 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4395, allocations: 8 kB / 414.6 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.4395, allocations: 7.969 kB / 414.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007167/0.4467, allocations: 4.233 MB / 418.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.198e-06/0.4467, allocations: 4 kB / 418.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007525/0.4475, allocations: 180.4 kB / 419 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/0.4488, allocations: 0.5237 MB / 419.5 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.4489, allocations: 31.98 kB / 419.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007579/0.4565, allocations: 7.927 MB / 427.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/0.4565, allocations: 11.05 kB / 427.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005163/0.4617, allocations: 2.958 MB / 430.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008818/0.4626, allocations: 347.3 kB / 430.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.4628, allocations: 27.98 kB / 430.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007274/0.4635, allocations: 83.92 kB / 430.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002365/0.4638, allocations: 90.45 kB / 431 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.271e-05/0.4639, allocations: 35.98 kB / 431 MB, free: 1.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001347/0.4652, allocations: 0.8226 MB / 431.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4652, allocations: 4 kB / 431.8 MB, free: 1.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001853/0.4671, allocations: 411.9 kB / 432.2 MB, free: 0.6992 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (88): * Single equations (assignments): 83 * 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%) 6,(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.005104/0.4722, allocations: 3.558 MB / 435.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00392/0.4762, allocations: 2.173 MB / 438 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.4762, allocations: 0 / 438 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002282/0.4785, allocations: 1.479 MB / 439.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/0.4807, allocations: 370.7 kB / 439.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.021/0.5017, allocations: 11.72 MB / 451.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.5032, allocations: 1.638 MB / 453.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001229/0.5045, allocations: 299.8 kB / 453.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000966/0.5055, allocations: 0.6891 MB / 454.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5055, allocations: 0 / 454.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06503/0.5705, allocations: 34.58 MB / 488.7 MB, free: 8.035 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.5708, allocations: 237.9 kB / 489 MB, free: 7.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.583/3.154, allocations: 0 / 489 MB, free: 7.789 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat