Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 199 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.28/1.28, allocations: 227.2 MB / 245 MB, free: 5.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008621/0.0008621, allocations: 95.52 kB / 297.3 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002379/0.0002379, allocations: 4 kB / 358 MB, free: 9.184 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2033, allocations: 51.49 MB / 409.5 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3207/0.5241, allocations: 115.9 MB / 0.5131 GB, free: 47.26 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.5244, allocations: 92.91 kB / 0.5132 GB, free: 47.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2024/0.7268, allocations: 86.33 MB / 0.5975 GB, free: 3.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.7269, allocations: 0 / 0.5975 GB, free: 3.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002677/0.7272, allocations: 79.88 kB / 0.5976 GB, free: 3.012 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.008092/0.7353, allocations: 3.189 MB / 0.6007 GB, free: 15.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.7353, allocations: 8.031 kB / 0.6007 GB, free: 15.74 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001314/0.7366, allocations: 395.9 kB / 0.6011 GB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002231/0.7389, allocations: 487.6 kB / 0.6016 GB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00584/0.7447, allocations: 1.965 MB / 0.6035 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/0.745, allocations: 201.4 kB / 0.6037 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009775/0.746, allocations: 275.7 kB / 0.6039 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008159/0.7542, allocations: 3.498 MB / 0.6074 GB, free: 8.734 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001229/0.7543, allocations: 11.84 kB / 0.6074 GB, free: 8.723 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005554/0.7549, allocations: 112 kB / 0.6075 GB, free: 8.613 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.755, allocations: 121.2 kB / 0.6076 GB, free: 8.492 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006267/0.7613, allocations: 2.843 MB / 0.6104 GB, free: 5.637 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02183/0.7832, allocations: 11.23 MB / 0.6213 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002983/0.7862, allocations: 2.337 MB / 0.6236 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003733/0.7866, allocations: 219.5 kB / 0.6238 GB, free: 7.309 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.7867, allocations: 51.88 kB / 0.6239 GB, free: 7.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 4.389e-06/0.7867, allocations: 0 / 0.6239 GB, free: 7.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=157): time 0.01956/0.8062, allocations: 8.748 MB / 0.6324 GB, free: 14.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.8063, allocations: 72.66 kB / 0.6325 GB, free: 14.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003008/0.8093, allocations: 1.739 MB / 0.6342 GB, free: 12.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002617/0.8096, allocations: 53.7 kB / 0.6342 GB, free: 12.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009467/0.8106, allocations: 1.296 MB / 0.6355 GB, free: 11.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000544/0.8111, allocations: 0.5314 MB / 0.636 GB, free: 10.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.8112, allocations: 36 kB / 0.6361 GB, free: 10.56 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.8114, allocations: 385.8 kB / 0.6364 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.813, allocations: 0.9408 MB / 0.6373 GB, free: 9.238 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.8148, allocations: 1.403 MB / 0.6387 GB, free: 7.645 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/0.8166, allocations: 1.158 MB / 0.6398 GB, free: 6.492 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.8166, allocations: 4 kB / 0.6398 GB, free: 6.488 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.005642/0.8223, allocations: 3.168 MB / 0.6429 GB, free: 3.305 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.8223, allocations: 12 kB / 0.6429 GB, free: 3.293 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.8224, allocations: 12 kB / 0.643 GB, free: 3.281 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/0.8241, allocations: 0.6313 MB / 0.6436 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.8258, allocations: 439.3 kB / 0.644 GB, free: 2.215 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008543/0.8343, allocations: 5.956 MB / 0.6498 GB, free: 12.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002133/0.8365, allocations: 127.9 kB / 0.6499 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.8369, allocations: 79.98 kB / 0.65 GB, free: 11.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {(6,72.2%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002077/0.839, allocations: 0.8447 MB / 0.6508 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006851/0.8397, allocations: 217.4 kB / 0.651 GB, free: 10.85 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005702/0.8454, allocations: 2.85 MB / 0.6538 GB, free: 7.973 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.8454, allocations: 16 kB / 0.6538 GB, free: 7.957 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/0.8454, allocations: 8 kB / 0.6538 GB, free: 7.949 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/0.8455, allocations: 7.969 kB / 0.6539 GB, free: 7.941 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/0.8594, allocations: 5.862 MB / 0.6596 GB, free: 1.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.268e-05/0.8595, allocations: 4 kB / 0.6596 GB, free: 1.977 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.8608, allocations: 283.8 kB / 0.6599 GB, free: 1.699 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00195/0.8627, allocations: 0.6889 MB / 0.6605 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.8629, allocations: 43.98 kB / 0.6606 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009771/0.8727, allocations: 7.714 MB / 0.6681 GB, free: 8.973 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.8727, allocations: 4 kB / 0.6681 GB, free: 8.969 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007805/0.8805, allocations: 4.256 MB / 0.6723 GB, free: 4.598 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/0.8821, allocations: 494.4 kB / 0.6727 GB, free: 4.094 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006606/0.8828, allocations: 35.98 kB / 0.6728 GB, free: 4.059 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/0.8845, allocations: 115.9 kB / 0.6729 GB, free: 3.945 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/0.8849, allocations: 121.1 kB / 0.673 GB, free: 3.828 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.8851, allocations: 51.94 kB / 0.673 GB, free: 3.777 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002739/0.8878, allocations: 1.332 MB / 0.6743 GB, free: 2.422 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8878, allocations: 3.938 kB / 0.6743 GB, free: 2.418 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003299/0.8911, allocations: 0.6835 MB / 0.675 GB, free: 1.734 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 27,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2095/1.101, allocations: 5.496 MB / 0.6804 GB, free: 109.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004232/1.105, allocations: 2.815 MB / 0.6831 GB, free: 108.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/1.105, allocations: 0 / 0.6831 GB, free: 108.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002764/1.108, allocations: 1.732 MB / 0.6848 GB, free: 108.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/1.11, allocations: 457.3 kB / 0.6853 GB, free: 108.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02564/1.136, allocations: 27.07 MB / 0.7117 GB, free: 93.36 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001666/1.138, allocations: 2.205 MB / 0.7139 GB, free: 92.61 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001609/1.139, allocations: 450.4 kB / 0.7143 GB, free: 92.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/1.14, allocations: 1.06 MB / 0.7153 GB, free: 92.59 MB / 458.7 MB Notification: Performance of SimCode: time 2.635e-06/1.14, allocations: 0 / 0.7153 GB, free: 92.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0748/1.215, allocations: 55.79 MB / 0.7698 GB, free: 71.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001503/1.215, allocations: 224.1 kB / 0.77 GB, free: 71.55 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.315/4.53, allocations: 0 / 0.77 GB, free: 71.55 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat