Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001054/0.001054, allocations: 199.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008526/0.0008526, allocations: 94.14 kB / 297.2 MB, free: 6.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001999/0.0002, allocations: 8 kB / 358 MB, free: 9.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.18, allocations: 51.48 MB / 409.5 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1129/0.2929, allocations: 105.4 MB / 0.5028 GB, free: 1.215 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.2932, allocations: 89.2 kB / 0.5029 GB, free: 1.129 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.243/0.5363, allocations: 41.64 MB / 0.5436 GB, free: 68.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.5363, allocations: 4 kB / 0.5436 GB, free: 68.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001017/0.5364, allocations: 47.94 kB / 0.5436 GB, free: 68.86 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.003488/0.5399, allocations: 2.221 MB / 0.5458 GB, free: 66.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.5399, allocations: 15.91 kB / 0.5458 GB, free: 66.56 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002997/0.5402, allocations: 278.4 kB / 0.5461 GB, free: 66.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000659/0.5409, allocations: 285.1 kB / 0.5463 GB, free: 66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00225/0.5432, allocations: 1.384 MB / 0.5477 GB, free: 64.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.633e-05/0.5432, allocations: 147.7 kB / 0.5478 GB, free: 64.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002181/0.5435, allocations: 195.9 kB / 0.548 GB, free: 64.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00291/0.5464, allocations: 2.397 MB / 0.5504 GB, free: 61.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/0.5465, allocations: 11.91 kB / 0.5504 GB, free: 61.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001564/0.5466, allocations: 83.98 kB / 0.5504 GB, free: 61.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.005e-05/0.5467, allocations: 79.69 kB / 0.5505 GB, free: 61.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/0.5492, allocations: 1.869 MB / 0.5523 GB, free: 59.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009252/0.5585, allocations: 7.837 MB / 0.56 GB, free: 51.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.5599, allocations: 1.293 MB / 0.5613 GB, free: 50.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002439/0.5601, allocations: 138 kB / 0.5614 GB, free: 50.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.5602, allocations: 43.56 kB / 0.5614 GB, free: 50.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=99): time 2.374e-06/0.5602, allocations: 0 / 0.5614 GB, free: 50.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=115): time 0.009864/0.57, allocations: 5.834 MB / 0.5671 GB, free: 44.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/0.5701, allocations: 68.34 kB / 0.5672 GB, free: 44.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.5713, allocations: 1.123 MB / 0.5683 GB, free: 42.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.182e-05/0.5714, allocations: 45.7 kB / 0.5683 GB, free: 42.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003759/0.5718, allocations: 0.9044 MB / 0.5692 GB, free: 41.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.572, allocations: 402.2 kB / 0.5696 GB, free: 41.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-05/0.572, allocations: 31.94 kB / 0.5696 GB, free: 41.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.756e-05/0.5721, allocations: 361.9 kB / 0.57 GB, free: 41.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007766/0.5729, allocations: 0.6481 MB / 0.5706 GB, free: 40.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008702/0.5738, allocations: 0.9912 MB / 0.5716 GB, free: 39.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009245/0.5747, allocations: 0.8028 MB / 0.5724 GB, free: 38.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5747, allocations: 4 kB / 0.5724 GB, free: 38.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.002883/0.5776, allocations: 2.256 MB / 0.5746 GB, free: 36.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.5776, allocations: 8 kB / 0.5746 GB, free: 36.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.5777, allocations: 15.94 kB / 0.5746 GB, free: 36.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.5787, allocations: 488.1 kB / 0.5751 GB, free: 35.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.5797, allocations: 315.5 kB / 0.5754 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004788/0.5845, allocations: 6.605 MB / 0.5818 GB, free: 28.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009849/0.5855, allocations: 99.83 kB / 0.5819 GB, free: 28.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.141e-05/0.5856, allocations: 52 kB / 0.582 GB, free: 28.31 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.0009039/0.5865, allocations: 0.6009 MB / 0.5825 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001956/0.5867, allocations: 150.2 kB / 0.5827 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.5894, allocations: 1.996 MB / 0.5846 GB, free: 25.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.5895, allocations: 19.94 kB / 0.5847 GB, free: 25.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5895, allocations: 4.188 kB / 0.5847 GB, free: 25.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.5895, allocations: 3.984 kB / 0.5847 GB, free: 25.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005437/0.5949, allocations: 4.119 MB / 0.5887 GB, free: 21.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.595, allocations: 4.281 kB / 0.5887 GB, free: 21.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007922/0.5958, allocations: 199.7 kB / 0.5889 GB, free: 21.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/0.597, allocations: 0.5309 MB / 0.5894 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.459e-05/0.5971, allocations: 31.98 kB / 0.5894 GB, free: 20.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005515/0.6026, allocations: 8.136 MB / 0.5974 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6026, allocations: 7.875 kB / 0.5974 GB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003506/0.6061, allocations: 3.034 MB / 0.6003 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007107/0.6068, allocations: 359.2 kB / 0.6007 GB, free: 8.328 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.607, allocations: 31.94 kB / 0.6007 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007458/0.6078, allocations: 72.17 kB / 0.6008 GB, free: 8.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.608, allocations: 88.88 kB / 0.6009 GB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.088e-05/0.6081, allocations: 35.98 kB / 0.6009 GB, free: 8.105 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001019/0.6091, allocations: 0.8604 MB / 0.6017 GB, free: 7.242 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6091, allocations: 0 / 0.6017 GB, free: 7.242 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001475/0.6106, allocations: 475.9 kB / 0.6022 GB, free: 6.777 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.004086/0.6147, allocations: 4.384 MB / 0.6065 GB, free: 2.285 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.6175, allocations: 2.254 MB / 0.6087 GB, free: 15.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.6175, allocations: 0 / 0.6087 GB, free: 15.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002081/0.6196, allocations: 1.529 MB / 0.6102 GB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001681/0.6213, allocations: 392.7 kB / 0.6106 GB, free: 13.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02104/0.6424, allocations: 19.12 MB / 0.6292 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.6436, allocations: 1.693 MB / 0.6309 GB, free: 8.539 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001061/0.6447, allocations: 336.9 kB / 0.6312 GB, free: 8.203 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008395/0.6455, allocations: 0.7102 MB / 0.6319 GB, free: 7.496 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6456, allocations: 0 / 0.6319 GB, free: 7.496 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05943/0.705, allocations: 39.7 MB / 0.6707 GB, free: 196 kB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.1743/0.8794, allocations: 215.5 kB / 0.6709 GB, free: 139.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.828/3.708, allocations: 0.9844 kB / 0.6709 GB, free: 139.8 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat