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.001029/0.001029, allocations: 175.4 kB / 13.63 MB, free: 1.684 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.398/1.398, allocations: 221.3 MB / 235.5 MB, free: 2.984 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.0008886/0.0008885, allocations: 91.8 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.545e-05/2.562e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 50.41 MB / 394.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3263/0.4304, allocations: 104.5 MB / 498.8 MB, free: 14.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.4307, allocations: 89.73 kB / 498.9 MB, free: 14.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1088/0.5394, allocations: 41.49 MB / 0.5278 GB, free: 5.098 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5395, allocations: 0 / 0.5278 GB, free: 5.098 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000141/0.5396, allocations: 59.92 kB / 0.5278 GB, free: 5.039 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.004056/0.5437, allocations: 1.992 MB / 0.5298 GB, free: 2.996 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.5437, allocations: 8.031 kB / 0.5298 GB, free: 2.988 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004041/0.5441, allocations: 278.4 kB / 0.53 GB, free: 2.707 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000732/0.5449, allocations: 269 kB / 0.5303 GB, free: 2.441 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002595/0.5475, allocations: 1.38 MB / 0.5316 GB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.5476, allocations: 147.8 kB / 0.5318 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002737/0.5479, allocations: 191.9 kB / 0.532 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003909/0.5518, allocations: 2.354 MB / 0.5343 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.585e-05/0.5519, allocations: 4 kB / 0.5343 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001852/0.5521, allocations: 83.98 kB / 0.5343 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-05/0.5522, allocations: 87.64 kB / 0.5344 GB, free: 14.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003145/0.5553, allocations: 1.811 MB / 0.5362 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01281/0.5682, allocations: 7.841 MB / 0.5439 GB, free: 4.164 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.5699, allocations: 1.274 MB / 0.5451 GB, free: 2.844 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.5711, allocations: 0.8041 MB / 0.5459 GB, free: 2.039 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003083/0.5715, allocations: 134.1 kB / 0.546 GB, free: 1.891 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.5715, allocations: 43.56 kB / 0.5461 GB, free: 1.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=99): time 3.276e-06/0.5715, allocations: 0 / 0.5461 GB, free: 1.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.2405/0.812, allocations: 4.842 MB / 0.5508 GB, free: 107.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.8121, allocations: 64.86 kB / 0.5508 GB, free: 107.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001621/0.8137, allocations: 1.109 MB / 0.5519 GB, free: 107 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.566e-05/0.8138, allocations: 49.05 kB / 0.552 GB, free: 107 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005063/0.8143, allocations: 0.9065 MB / 0.5529 GB, free: 106.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002723/0.8146, allocations: 403.9 kB / 0.5532 GB, free: 106.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.8147, allocations: 32.47 kB / 0.5533 GB, free: 106.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.335e-05/0.8148, allocations: 361 kB / 0.5536 GB, free: 106.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009376/0.8157, allocations: 0.6211 MB / 0.5542 GB, free: 106.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.8168, allocations: 0.9734 MB / 0.5552 GB, free: 105.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.8179, allocations: 0.7845 MB / 0.5559 GB, free: 105.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.8179, allocations: 2.688 kB / 0.5559 GB, free: 105.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003637/0.8216, allocations: 2.145 MB / 0.558 GB, free: 105.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.8216, allocations: 11.16 kB / 0.5581 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.8217, allocations: 11.08 kB / 0.5581 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.8227, allocations: 413.8 kB / 0.5585 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.8241, allocations: 342.6 kB / 0.5588 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004673/0.8288, allocations: 4.636 MB / 0.5633 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.8303, allocations: 84.38 kB / 0.5634 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001515/0.8304, allocations: 56 kB / 0.5634 GB, free: 103 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.0003022/0.8308, allocations: 188.3 kB / 0.5636 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002887/0.8311, allocations: 148.2 kB / 0.5638 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003745/0.8348, allocations: 1.893 MB / 0.5656 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.8348, allocations: 11.89 kB / 0.5656 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.8349, allocations: 6.156 kB / 0.5656 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.8349, allocations: 6.141 kB / 0.5656 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007566/0.8425, allocations: 4.039 MB / 0.5696 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.8425, allocations: 3.156 kB / 0.5696 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.8435, allocations: 223 kB / 0.5698 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.8447, allocations: 472.8 kB / 0.5702 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.8448, allocations: 31.02 kB / 0.5703 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004978/0.8498, allocations: 6.158 MB / 0.5763 GB, free: 96.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.8499, allocations: 5.688 kB / 0.5763 GB, free: 96.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003711/0.8536, allocations: 2.914 MB / 0.5791 GB, free: 95.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007425/0.8543, allocations: 358.1 kB / 0.5795 GB, free: 95.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001907/0.8545, allocations: 35.02 kB / 0.5795 GB, free: 95.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007772/0.8553, allocations: 73 kB / 0.5796 GB, free: 95.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.8555, allocations: 82.33 kB / 0.5797 GB, free: 95.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.305e-05/0.8556, allocations: 34.78 kB / 0.5797 GB, free: 95.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001127/0.8567, allocations: 0.8494 MB / 0.5805 GB, free: 94.94 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8567, allocations: 0 / 0.5805 GB, free: 94.94 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001558/0.8583, allocations: 460.3 kB / 0.581 GB, free: 94.89 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.003965/0.8623, allocations: 4.257 MB / 0.5851 GB, free: 92.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002757/0.8651, allocations: 2.049 MB / 0.5871 GB, free: 91.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.8651, allocations: 2.812 kB / 0.5871 GB, free: 91.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.8668, allocations: 1.337 MB / 0.5884 GB, free: 90.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.8687, allocations: 387.2 kB / 0.5888 GB, free: 90.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006309/0.875, allocations: 3.893 MB / 0.5926 GB, free: 88.91 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.876, allocations: 1.684 MB / 0.5942 GB, free: 88.03 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001143/0.8772, allocations: 340.9 kB / 0.5946 GB, free: 87.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000831/0.878, allocations: 0.7204 MB / 0.5953 GB, free: 87.42 MB / 426.7 MB Notification: Performance of SimCode: time 1.493e-06/0.878, allocations: 0 / 0.5953 GB, free: 87.42 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0625/0.9406, allocations: 39.12 MB / 0.6335 GB, free: 66.53 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002333/0.9409, allocations: 193 kB / 0.6337 GB, free: 66.31 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.958/3.899, allocations: 0 / 0.6337 GB, free: 66.31 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