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.0009795/0.0009797, allocations: 97.11 kB / 16.3 MB, free: 5.598 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.001092/0.001092, allocations: 179.6 kB / 17.19 MB, free: 5.535 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.399/1.399, allocations: 223.2 MB / 241.1 MB, free: 292 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003086, allocations: 4 kB / 300.8 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1272, allocations: 50.41 MB / 351.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.009856/0.1371, allocations: 7.156 MB / 358.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006433/0.1436, allocations: 2.733 MB / 361.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.1451, allocations: 39.81 kB / 361.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.147, allocations: 0.5015 MB / 361.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00256/0.1495, allocations: 0.5958 MB / 362.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009347/0.1505, allocations: 207.6 kB / 362.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003251/0.1537, allocations: 1.443 MB / 363.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.1555, allocations: 1.224 MB / 365.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001423/0.1569, allocations: 0.7006 MB / 365.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001477/0.1584, allocations: 0.9183 MB / 366.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002742/0.1587, allocations: 112 kB / 366.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005393/0.1592, allocations: 179.9 kB / 367 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006385/0.1599, allocations: 0.5453 MB / 367.6 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005332/0.1604, allocations: 432.6 kB / 368 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002863/0.1633, allocations: 2.789 MB / 370.8 MB, free: 276 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1633, allocations: 0 / 370.8 MB, free: 276 kB / 302.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.1633, allocations: 0 / 370.8 MB, free: 276 kB / 302.1 MB Notification: Performance of Transformations before backend: time 9.525e-05/0.1634, allocations: 0 / 370.8 MB, free: 276 kB / 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.1988/0.3623, allocations: 2.124 MB / 372.9 MB, free: 23.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.3623, allocations: 10.56 kB / 372.9 MB, free: 23.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006888/0.363, allocations: 264.8 kB / 373.2 MB, free: 23.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008625/0.3639, allocations: 252.6 kB / 373.4 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002489/0.3664, allocations: 1.239 MB / 374.7 MB, free: 22.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.3665, allocations: 136.3 kB / 374.8 MB, free: 22.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002959/0.3668, allocations: 183.4 kB / 375 MB, free: 22.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00436/0.3712, allocations: 2.355 MB / 377.3 MB, free: 21.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.157e-05/0.3713, allocations: 10.14 kB / 377.3 MB, free: 21.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.3715, allocations: 76.42 kB / 377.4 MB, free: 21.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/0.3716, allocations: 93.36 kB / 377.5 MB, free: 21.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003654/0.3752, allocations: 1.969 MB / 379.5 MB, free: 21.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01172/0.387, allocations: 7.135 MB / 386.6 MB, free: 16.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.3887, allocations: 1.273 MB / 387.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002088/0.3889, allocations: 126 kB / 388 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.389, allocations: 47 kB / 388.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.966e-06/0.389, allocations: 0 / 388.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=107): time 0.01439/0.4034, allocations: 6.778 MB / 394.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.4034, allocations: 64.41 kB / 394.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/0.4048, allocations: 1.16 MB / 396.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.439e-05/0.4049, allocations: 45.7 kB / 396.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004183/0.4053, allocations: 0.8645 MB / 397 MB, free: 9.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002425/0.4056, allocations: 379.4 kB / 397.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.99e-05/0.4057, allocations: 24 kB / 397.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.436e-05/0.4057, allocations: 353.9 kB / 397.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000843/0.4066, allocations: 0.6623 MB / 398.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009676/0.4076, allocations: 0.9619 MB / 399.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.4086, allocations: 0.8033 MB / 400.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.4086, allocations: 4 kB / 400.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.003456/0.4121, allocations: 2.342 MB / 402.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.4121, allocations: 11.94 kB / 402.5 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.4122, allocations: 8 kB / 402.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/0.4134, allocations: 0.5968 MB / 403.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008971/0.4143, allocations: 275.6 kB / 403.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006708/0.4211, allocations: 6.421 MB / 409.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.4223, allocations: 91.88 kB / 409.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.651e-05/0.4224, allocations: 47.98 kB / 409.9 MB, free: 12.45 MB / 318.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.001153/0.4236, allocations: 0.6055 MB / 410.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/0.4239, allocations: 130.4 kB / 410.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003633/0.4275, allocations: 2.169 MB / 412.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4275, allocations: 8 kB / 412.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.4276, allocations: 8 kB / 412.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.4276, allocations: 7.969 kB / 412.8 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00731/0.4349, allocations: 4.308 MB / 417.1 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.4349, allocations: 4 kB / 417.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000732/0.4357, allocations: 180 kB / 417.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.4373, allocations: 0.6475 MB / 418 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-05/0.4374, allocations: 35.98 kB / 418 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008796/0.4462, allocations: 7.921 MB / 425.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4463, allocations: 0 / 425.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004932/0.4512, allocations: 3.216 MB / 429.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008375/0.4521, allocations: 355.2 kB / 429.5 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/0.4523, allocations: 31.98 kB / 429.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007206/0.453, allocations: 75.92 kB / 429.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.4532, allocations: 92.77 kB / 429.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.525e-05/0.4533, allocations: 31.98 kB / 429.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.4544, allocations: 0.7952 MB / 430.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4544, allocations: 0 / 430.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001559/0.456, allocations: 424 kB / 430.9 MB, free: 6.797 MB / 334.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.005437/0.4615, allocations: 4.431 MB / 435.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.4651, allocations: 2.223 MB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/0.4651, allocations: 0 / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002291/0.4674, allocations: 1.499 MB / 439.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.4691, allocations: 344.5 kB / 439.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/0.4911, allocations: 17.61 MB / 457 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.4925, allocations: 1.677 MB / 458.7 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009843/0.4935, allocations: 291.8 kB / 459 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007964/0.4943, allocations: 0.6828 MB / 459.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4943, allocations: 0 / 459.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07988/0.5742, allocations: 35.58 MB / 495.3 MB, free: 6.125 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003016/0.5746, allocations: 232.7 kB / 495.5 MB, free: 5.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.591/3.166, allocations: 4 kB / 495.5 MB, free: 5.875 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