Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_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/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001372, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009158/0.000916, allocations: 96.19 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002817/0.0002817, allocations: 11.94 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2195, allocations: 50.39 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.3347, allocations: 104.6 MB / 0.4943 GB, free: 7.871 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.3349, allocations: 99.88 kB / 0.4944 GB, free: 7.773 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.252/0.5869, allocations: 41.44 MB / 0.5348 GB, free: 79.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.587, allocations: 4 kB / 0.5348 GB, free: 79.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001668/0.5871, allocations: 47.94 kB / 0.5349 GB, free: 79.3 MB / 378.7 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.005587/0.5927, allocations: 2.213 MB / 0.537 GB, free: 77.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.5928, allocations: 8.031 kB / 0.5371 GB, free: 77.03 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001009/0.5938, allocations: 282.4 kB / 0.5373 GB, free: 76.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.595, allocations: 269.1 kB / 0.5376 GB, free: 76.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003174/0.5982, allocations: 1.388 MB / 0.5389 GB, free: 75.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.5983, allocations: 147.8 kB / 0.5391 GB, free: 74.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004503/0.5988, allocations: 191.9 kB / 0.5393 GB, free: 74.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003849/0.6027, allocations: 2.401 MB / 0.5416 GB, free: 72.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.657e-05/0.6027, allocations: 11.98 kB / 0.5416 GB, free: 72.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001894/0.6029, allocations: 76 kB / 0.5417 GB, free: 72.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.691e-05/0.603, allocations: 79.69 kB / 0.5418 GB, free: 72.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002708/0.6057, allocations: 1.873 MB / 0.5436 GB, free: 70.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009856/0.6156, allocations: 7.857 MB / 0.5513 GB, free: 62.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.617, allocations: 1.279 MB / 0.5525 GB, free: 60.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002404/0.6173, allocations: 138.1 kB / 0.5526 GB, free: 60.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.6173, allocations: 39.56 kB / 0.5527 GB, free: 60.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=99): time 3.677e-06/0.6173, allocations: 0 / 0.5527 GB, free: 60.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=115): time 0.011/0.6283, allocations: 5.834 MB / 0.5584 GB, free: 54.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.6284, allocations: 68.41 kB / 0.5584 GB, free: 54.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.6299, allocations: 1.119 MB / 0.5595 GB, free: 53.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.6301, allocations: 49.7 kB / 0.5596 GB, free: 53.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004608/0.6305, allocations: 0.8967 MB / 0.5605 GB, free: 52.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/0.6308, allocations: 406.1 kB / 0.5609 GB, free: 52.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.513e-05/0.6309, allocations: 28 kB / 0.5609 GB, free: 52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.647e-05/0.631, allocations: 357.9 kB / 0.5612 GB, free: 51.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009093/0.6319, allocations: 0.6481 MB / 0.5619 GB, free: 51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009517/0.6329, allocations: 0.9989 MB / 0.5628 GB, free: 49.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000981/0.6339, allocations: 0.7988 MB / 0.5636 GB, free: 49.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.6339, allocations: 8 kB / 0.5636 GB, free: 49.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003325/0.6372, allocations: 2.256 MB / 0.5658 GB, free: 46.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.6373, allocations: 11.98 kB / 0.5658 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.6373, allocations: 12 kB / 0.5658 GB, free: 46.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.6384, allocations: 495.9 kB / 0.5663 GB, free: 46.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.6395, allocations: 315.5 kB / 0.5666 GB, free: 45.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005098/0.6446, allocations: 6.605 MB / 0.5731 GB, free: 38.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.646, allocations: 83.91 kB / 0.5731 GB, free: 38.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.6461, allocations: 56 kB / 0.5732 GB, free: 38.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 144 * 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%) 1,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001135/0.6472, allocations: 0.6092 MB / 0.5738 GB, free: 38.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002731/0.6475, allocations: 146.2 kB / 0.5739 GB, free: 38.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003018/0.6505, allocations: 1.996 MB / 0.5759 GB, free: 36.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.6506, allocations: 12 kB / 0.5759 GB, free: 36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.6506, allocations: 11.94 kB / 0.5759 GB, free: 35.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.6506, allocations: 3.984 kB / 0.5759 GB, free: 35.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006319/0.6569, allocations: 4.122 MB / 0.5799 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.657, allocations: 8 kB / 0.5799 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008666/0.6579, allocations: 195.7 kB / 0.5801 GB, free: 31.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/0.6592, allocations: 0.5342 MB / 0.5807 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.6593, allocations: 27.98 kB / 0.5807 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006029/0.6654, allocations: 8.143 MB / 0.5886 GB, free: 22.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.6654, allocations: 4.031 kB / 0.5886 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003906/0.6693, allocations: 3.023 MB / 0.5916 GB, free: 19.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008255/0.6702, allocations: 355.2 kB / 0.5919 GB, free: 18.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.6704, allocations: 31.98 kB / 0.592 GB, free: 18.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008009/0.6712, allocations: 75.92 kB / 0.592 GB, free: 18.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002489/0.6715, allocations: 92.91 kB / 0.5921 GB, free: 18.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.574e-05/0.6716, allocations: 43.88 kB / 0.5922 GB, free: 18.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001238/0.6728, allocations: 0.8643 MB / 0.593 GB, free: 17.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6728, allocations: 0 / 0.593 GB, free: 17.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00163/0.6745, allocations: 467.9 kB / 0.5934 GB, free: 17.27 MB / 378.7 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 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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.004156/0.6786, allocations: 4.394 MB / 0.5977 GB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002889/0.6815, allocations: 2.249 MB / 0.5999 GB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.6815, allocations: 0 / 0.5999 GB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001802/0.6834, allocations: 1.523 MB / 0.6014 GB, free: 8.836 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.685, allocations: 381.9 kB / 0.6018 GB, free: 8.469 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/0.7048, allocations: 19.13 MB / 0.6205 GB, free: 4.758 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001397/0.7062, allocations: 1.685 MB / 0.6221 GB, free: 3.039 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001094/0.7073, allocations: 336.8 kB / 0.6224 GB, free: 2.703 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009252/0.7082, allocations: 0.7141 MB / 0.6231 GB, free: 1.988 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.7082, allocations: 4 kB / 0.6231 GB, free: 1.984 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2503/0.9585, allocations: 39.59 MB / 0.6618 GB, free: 115.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000143/0.9587, allocations: 223.5 kB / 0.662 GB, free: 114.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.087/4.046, allocations: 3.062 kB / 0.662 GB, free: 114.9 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat