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.001023/0.001022, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 225.6 MB / 234.8 MB, free: 3.18 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008106/0.0008107, allocations: 96.73 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.036e-05, allocations: 4 kB / 343.8 MB, free: 8.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 51.48 MB / 395.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4122/0.523, allocations: 104.7 MB / 499.9 MB, free: 4.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.5232, allocations: 84.83 kB / 0.4883 GB, free: 4.707 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1054/0.6286, allocations: 41.15 MB / 0.5285 GB, free: 356 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.6287, allocations: 0 / 0.5285 GB, free: 356 kB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001293/0.6288, allocations: 48 kB / 0.5285 GB, free: 308 kB / 394.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.00405/0.6329, allocations: 2.001 MB / 0.5305 GB, free: 14.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.633, allocations: 12.03 kB / 0.5305 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008918/0.6338, allocations: 285 kB / 0.5308 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002462/0.6363, allocations: 1.38 MB / 0.5321 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.582e-05/0.6364, allocations: 60 kB / 0.5322 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002426/0.6367, allocations: 115.9 kB / 0.5323 GB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002937/0.6396, allocations: 1.714 MB / 0.5339 GB, free: 10.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003313/0.6429, allocations: 2.081 MB / 0.536 GB, free: 8.465 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.638e-05/0.643, allocations: 7.906 kB / 0.536 GB, free: 8.457 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.6432, allocations: 8 kB / 0.536 GB, free: 8.449 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.599e-05/0.6433, allocations: 79.69 kB / 0.5361 GB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01202/0.6553, allocations: 7.472 MB / 0.5434 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.6569, allocations: 1.217 MB / 0.5446 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/0.6581, allocations: 0.7733 MB / 0.5453 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/0.6584, allocations: 134.3 kB / 0.5454 GB, free: 14.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.6584, allocations: 43.88 kB / 0.5455 GB, free: 14.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=99): time 3.115e-06/0.6584, allocations: 0 / 0.5455 GB, free: 14.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.007634/0.6661, allocations: 3.983 MB / 0.5494 GB, free: 10.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.6661, allocations: 68.67 kB / 0.5494 GB, free: 10.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.6677, allocations: 0.9103 MB / 0.5503 GB, free: 9.406 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.944e-05/0.6678, allocations: 25.7 kB / 0.5503 GB, free: 9.375 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006475/0.6685, allocations: 0.9151 MB / 0.5512 GB, free: 8.445 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003418/0.6688, allocations: 386.2 kB / 0.5516 GB, free: 8.062 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.6689, allocations: 4 kB / 0.5516 GB, free: 8.059 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.6691, allocations: 361.9 kB / 0.552 GB, free: 7.699 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008582/0.6699, allocations: 0.5935 MB / 0.5525 GB, free: 7.105 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.671, allocations: 0.9405 MB / 0.5535 GB, free: 6.023 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.6721, allocations: 0.7479 MB / 0.5542 GB, free: 5.273 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.6721, allocations: 8 kB / 0.5542 GB, free: 5.266 MB / 426.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003222/0.6753, allocations: 1.998 MB / 0.5561 GB, free: 3.246 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/0.6753, allocations: 12 kB / 0.5562 GB, free: 3.234 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.6754, allocations: 11.98 kB / 0.5562 GB, free: 3.223 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009503/0.6763, allocations: 407.4 kB / 0.5566 GB, free: 2.812 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.6776, allocations: 339.5 kB / 0.5569 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004387/0.682, allocations: 4.428 MB / 0.5612 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.6833, allocations: 59.83 kB / 0.5613 GB, free: 13.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.6834, allocations: 55.98 kB / 0.5613 GB, free: 13.7 MB / 442.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.0002898/0.6837, allocations: 144.7 kB / 0.5615 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002716/0.6864, allocations: 1.678 MB / 0.5631 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002459/0.6867, allocations: 130.4 kB / 0.5632 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003001/0.6897, allocations: 1.791 MB / 0.565 GB, free: 9.914 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.6897, allocations: 12 kB / 0.565 GB, free: 9.902 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.6897, allocations: 7.953 kB / 0.565 GB, free: 9.895 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.6898, allocations: 7.969 kB / 0.565 GB, free: 9.887 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006445/0.6962, allocations: 3.706 MB / 0.5686 GB, free: 6.105 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.6962, allocations: 4 kB / 0.5686 GB, free: 6.102 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009739/0.6972, allocations: 215.7 kB / 0.5688 GB, free: 5.891 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/0.6984, allocations: 463.1 kB / 0.5693 GB, free: 5.426 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.039e-05/0.6985, allocations: 23.97 kB / 0.5693 GB, free: 5.402 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2941/0.9927, allocations: 5.888 MB / 0.575 GB, free: 95.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.9927, allocations: 3.938 kB / 0.575 GB, free: 95.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/0.9967, allocations: 2.804 MB / 0.5778 GB, free: 94.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007684/0.9975, allocations: 343.1 kB / 0.5781 GB, free: 94.72 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/0.9977, allocations: 9.719 kB / 0.5781 GB, free: 94.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006907/0.9984, allocations: 57.84 kB / 0.5782 GB, free: 94.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.9986, allocations: 86.36 kB / 0.5783 GB, free: 94.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.536e-05/0.9987, allocations: 38.45 kB / 0.5783 GB, free: 94.72 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001028/0.9997, allocations: 0.6816 MB / 0.579 GB, free: 94.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9997, allocations: 0.75 kB / 0.579 GB, free: 94.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001476/1.001, allocations: 397.7 kB / 0.5793 GB, free: 94.61 MB / 442.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.004238/1.005, allocations: 4.148 MB / 0.5834 GB, free: 93.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002584/1.008, allocations: 1.968 MB / 0.5853 GB, free: 92.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.008, allocations: 0 / 0.5853 GB, free: 92.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/1.01, allocations: 1.289 MB / 0.5866 GB, free: 92.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/1.012, allocations: 302 kB / 0.5869 GB, free: 92.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006828/1.019, allocations: 3.772 MB / 0.5905 GB, free: 91.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/1.02, allocations: 1.684 MB / 0.5922 GB, free: 90.52 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001078/1.021, allocations: 327.4 kB / 0.5925 GB, free: 90.48 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008065/1.022, allocations: 0.7156 MB / 0.5932 GB, free: 90.48 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/1.022, allocations: 0 / 0.5932 GB, free: 90.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08975/1.112, allocations: 32.85 MB / 0.6253 GB, free: 88.69 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001544/1.112, allocations: 169.3 kB / 0.6254 GB, free: 88.49 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/3.879, allocations: 0 / 0.6254 GB, free: 88.49 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