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.001159/0.001159, allocations: 195.1 kB / 14.16 MB, free: 1.152 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001314/0.001314, allocations: 94.31 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.705e-05/3.731e-05, allocations: 0 / 350.7 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 51.47 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3898/0.5071, allocations: 105.3 MB / 0.4955 GB, free: 468 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.5074, allocations: 90.7 kB / 0.4956 GB, free: 420 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1143/0.6217, allocations: 41.69 MB / 0.5363 GB, free: 7.969 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.6217, allocations: 0 / 0.5363 GB, free: 7.969 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002326/0.622, allocations: 52 kB / 0.5364 GB, free: 7.918 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.005781/0.6278, allocations: 2.002 MB / 0.5383 GB, free: 5.871 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.23e-05/0.6278, allocations: 12.03 kB / 0.5384 GB, free: 5.859 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008848/0.6287, allocations: 270.5 kB / 0.5386 GB, free: 5.586 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/0.6302, allocations: 285 kB / 0.5389 GB, free: 5.305 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003484/0.6337, allocations: 1.384 MB / 0.5402 GB, free: 3.863 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.6339, allocations: 143.7 kB / 0.5404 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005128/0.6344, allocations: 195.9 kB / 0.5406 GB, free: 3.531 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004849/0.6393, allocations: 2.358 MB / 0.5429 GB, free: 1.086 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.572e-05/0.6394, allocations: 11.89 kB / 0.5429 GB, free: 1.074 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/0.6396, allocations: 80 kB / 0.543 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.735e-05/0.6397, allocations: 87.69 kB / 0.543 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003474/0.6432, allocations: 1.815 MB / 0.5448 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01371/0.6569, allocations: 7.84 MB / 0.5525 GB, free: 7.016 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.6588, allocations: 1.271 MB / 0.5537 GB, free: 5.699 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.6601, allocations: 0.7958 MB / 0.5545 GB, free: 4.898 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003214/0.6605, allocations: 146 kB / 0.5546 GB, free: 4.738 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.6606, allocations: 39.56 kB / 0.5547 GB, free: 4.691 MB / 426.7 MB Notification: Performance of pre-optimization done (n=99): time 3.296e-06/0.6606, allocations: 0 / 0.5547 GB, free: 4.691 MB / 426.7 MB Notification: Performance of matching and sorting (n=115): time 0.01106/0.6716, allocations: 4.844 MB / 0.5594 GB, free: 15.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.6717, allocations: 68.41 kB / 0.5595 GB, free: 15.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.6735, allocations: 1.11 MB / 0.5605 GB, free: 14.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.433e-05/0.6736, allocations: 49.64 kB / 0.5606 GB, free: 14.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006596/0.6743, allocations: 0.9044 MB / 0.5615 GB, free: 13.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003041/0.6746, allocations: 402.2 kB / 0.5619 GB, free: 13.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.6747, allocations: 28 kB / 0.5619 GB, free: 13.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.6748, allocations: 361.9 kB / 0.5622 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008958/0.6757, allocations: 0.6209 MB / 0.5628 GB, free: 12.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.6769, allocations: 0.9679 MB / 0.5638 GB, free: 11.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.678, allocations: 0.7895 MB / 0.5646 GB, free: 10.31 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.678, allocations: 4 kB / 0.5646 GB, free: 10.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003417/0.6814, allocations: 2.142 MB / 0.5666 GB, free: 8.145 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.6815, allocations: 19.94 kB / 0.5667 GB, free: 8.125 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.6815, allocations: 12 kB / 0.5667 GB, free: 8.113 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009641/0.6825, allocations: 415.4 kB / 0.5671 GB, free: 7.695 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.6837, allocations: 343.5 kB / 0.5674 GB, free: 7.359 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00464/0.6883, allocations: 4.63 MB / 0.5719 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.6896, allocations: 87.83 kB / 0.572 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.6898, allocations: 55.98 kB / 0.5721 GB, free: 2.324 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.0002899/0.6901, allocations: 188.5 kB / 0.5722 GB, free: 2.133 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.6903, allocations: 146.3 kB / 0.5724 GB, free: 1.988 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003202/0.6935, allocations: 1.89 MB / 0.5742 GB, free: 76 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.6936, allocations: 19.94 kB / 0.5742 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.6936, allocations: 0 / 0.5742 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/0.6936, allocations: 15.92 kB / 0.5743 GB, free: 40 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2965/0.9901, allocations: 4.024 MB / 0.5782 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.9901, allocations: 4.094 kB / 0.5782 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000892/0.991, allocations: 226.2 kB / 0.5784 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.9921, allocations: 463.3 kB / 0.5788 GB, free: 95.99 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-05/0.9922, allocations: 31.72 kB / 0.5789 GB, free: 95.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004838/0.997, allocations: 6.164 MB / 0.5849 GB, free: 92.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.9971, allocations: 3.156 kB / 0.5849 GB, free: 92.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/1.001, allocations: 2.908 MB / 0.5877 GB, free: 91.76 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008629/1.002, allocations: 364.8 kB / 0.5881 GB, free: 91.67 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/1.002, allocations: 30.11 kB / 0.5881 GB, free: 91.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000762/1.003, allocations: 68.22 kB / 0.5882 GB, free: 91.67 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002583/1.003, allocations: 93.16 kB / 0.5883 GB, free: 91.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/1.003, allocations: 28.88 kB / 0.5883 GB, free: 91.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001171/1.004, allocations: 0.8513 MB / 0.5891 GB, free: 91.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.11e-07/1.004, allocations: 0 / 0.5891 GB, free: 91.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001574/1.006, allocations: 466.2 kB / 0.5896 GB, free: 91.54 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.004162/1.01, allocations: 4.252 MB / 0.5937 GB, free: 89.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002751/1.013, allocations: 2.051 MB / 0.5957 GB, free: 89.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.013, allocations: 0 / 0.5957 GB, free: 89.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/1.015, allocations: 1.344 MB / 0.597 GB, free: 89.08 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/1.017, allocations: 386.9 kB / 0.5974 GB, free: 89.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007731/1.025, allocations: 3.899 MB / 0.6012 GB, free: 88.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/1.026, allocations: 1.686 MB / 0.6029 GB, free: 87.35 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001192/1.027, allocations: 346.7 kB / 0.6032 GB, free: 87.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008314/1.028, allocations: 0.7189 MB / 0.6039 GB, free: 87.3 MB / 442.7 MB Notification: Performance of SimCode: time 2.154e-06/1.028, allocations: 0 / 0.6039 GB, free: 87.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07325/1.101, allocations: 39.22 MB / 0.6422 GB, free: 85.12 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/1.101, allocations: 195.5 kB / 0.6424 GB, free: 84.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.058/4.16, allocations: 5 kB / 0.6424 GB, free: 84.91 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