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.001141/0.001141, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007921/0.0007922, allocations: 77.95 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.926e-05/1.929e-05, allocations: 4 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 50.43 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3658/0.4719, allocations: 103.8 MB / 491.4 MB, free: 6.812 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003692/0.4723, allocations: 83.95 kB / 491.5 MB, free: 6.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.109/0.5814, allocations: 40.98 MB / 0.52 GB, free: 13.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5814, allocations: 4 kB / 0.52 GB, free: 13.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001451/0.5816, allocations: 51.94 kB / 0.52 GB, free: 13.43 MB / 410.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.00399/0.5856, allocations: 1.992 MB / 0.522 GB, free: 11.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.5856, allocations: 12.03 kB / 0.522 GB, free: 11.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007176/0.5864, allocations: 269 kB / 0.5222 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.5889, allocations: 1.38 MB / 0.5236 GB, free: 9.672 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.579e-05/0.589, allocations: 64 kB / 0.5236 GB, free: 9.609 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002296/0.5892, allocations: 119.9 kB / 0.5238 GB, free: 9.492 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002771/0.592, allocations: 1.706 MB / 0.5254 GB, free: 7.785 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003195/0.5952, allocations: 2.081 MB / 0.5275 GB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.756e-05/0.5953, allocations: 8 kB / 0.5275 GB, free: 5.609 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.5954, allocations: 0 / 0.5275 GB, free: 5.609 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.671e-05/0.5955, allocations: 87.64 kB / 0.5276 GB, free: 5.523 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.6065, allocations: 7.482 MB / 0.5349 GB, free: 13.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.6081, allocations: 1.218 MB / 0.536 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.6092, allocations: 0.7737 MB / 0.5368 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002754/0.6095, allocations: 134.4 kB / 0.5369 GB, free: 11.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.6096, allocations: 47.88 kB / 0.537 GB, free: 11.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=99): time 2.796e-06/0.6096, allocations: 0 / 0.537 GB, free: 11.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.007603/0.6172, allocations: 3.972 MB / 0.5409 GB, free: 7.539 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.6172, allocations: 64.72 kB / 0.5409 GB, free: 7.461 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.6185, allocations: 0.9102 MB / 0.5418 GB, free: 6.539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.406e-05/0.6186, allocations: 29.7 kB / 0.5418 GB, free: 6.504 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005635/0.6191, allocations: 0.9112 MB / 0.5427 GB, free: 5.578 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000281/0.6194, allocations: 386.2 kB / 0.5431 GB, free: 5.195 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.415e-05/0.6195, allocations: 0 / 0.5431 GB, free: 5.195 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.6196, allocations: 365.9 kB / 0.5434 GB, free: 4.832 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00084/0.6205, allocations: 0.5935 MB / 0.544 GB, free: 4.238 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009971/0.6215, allocations: 0.9367 MB / 0.5449 GB, free: 3.164 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009955/0.6225, allocations: 0.7557 MB / 0.5457 GB, free: 2.406 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.6225, allocations: 4 kB / 0.5457 GB, free: 2.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003032/0.6256, allocations: 1.991 MB / 0.5476 GB, free: 400 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.6256, allocations: 16.03 kB / 0.5476 GB, free: 384 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.6256, allocations: 11.98 kB / 0.5477 GB, free: 372 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2438/0.8694, allocations: 396.1 kB / 0.548 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001693/0.8712, allocations: 347.6 kB / 0.5484 GB, free: 109.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004935/0.8761, allocations: 4.415 MB / 0.5527 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.8775, allocations: 59.03 kB / 0.5527 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/0.8778, allocations: 61.61 kB / 0.5528 GB, free: 107.5 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005299/0.8784, allocations: 141.7 kB / 0.5529 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003728/0.8821, allocations: 1.672 MB / 0.5546 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/0.8824, allocations: 139.3 kB / 0.5547 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003152/0.8856, allocations: 1.786 MB / 0.5564 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.8856, allocations: 12.5 kB / 0.5564 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.8856, allocations: 7.375 kB / 0.5564 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.8856, allocations: 5.484 kB / 0.5565 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006493/0.8921, allocations: 3.703 MB / 0.5601 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.8922, allocations: 2.812 kB / 0.5601 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009952/0.8932, allocations: 227.9 kB / 0.5603 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.8944, allocations: 462.4 kB / 0.5607 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.318e-05/0.8945, allocations: 16.38 kB / 0.5607 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005154/0.8996, allocations: 5.906 MB / 0.5665 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.8997, allocations: 2.5 kB / 0.5665 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/0.9041, allocations: 2.799 MB / 0.5692 GB, free: 102.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009091/0.905, allocations: 339.2 kB / 0.5696 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004011/0.9055, allocations: 9 kB / 0.5696 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.9065, allocations: 61.53 kB / 0.5696 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002865/0.9068, allocations: 92.2 kB / 0.5697 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.9069, allocations: 32.75 kB / 0.5698 GB, free: 102.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001409/0.9083, allocations: 0.6855 MB / 0.5704 GB, free: 102.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9083, allocations: 1.062 kB / 0.5704 GB, free: 102.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001986/0.9103, allocations: 395 kB / 0.5708 GB, free: 102.3 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 95 * 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 {(2,100.0%) 12,(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.004766/0.9151, allocations: 4.147 MB / 0.5749 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.9176, allocations: 1.966 MB / 0.5768 GB, free: 99.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.9176, allocations: 0 / 0.5768 GB, free: 99.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.9193, allocations: 1.29 MB / 0.578 GB, free: 98.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.921, allocations: 298.7 kB / 0.5783 GB, free: 98.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005918/0.9269, allocations: 3.782 MB / 0.582 GB, free: 97.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.928, allocations: 1.674 MB / 0.5836 GB, free: 96.42 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009315/0.9289, allocations: 324.7 kB / 0.584 GB, free: 96.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007934/0.9297, allocations: 0.7241 MB / 0.5847 GB, free: 95.8 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/0.9297, allocations: 3.969 kB / 0.5847 GB, free: 95.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05494/0.9847, allocations: 32.78 MB / 0.6167 GB, free: 86.25 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.9849, allocations: 166.7 kB / 0.6168 GB, free: 86.06 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.802/3.787, allocations: 0 / 0.6168 GB, free: 86.06 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