Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 181.3 kB / 16.39 MB, free: 5.762 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.293/1.293, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000979/0.0009791, allocations: 87.33 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.0003755, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2697, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3765/0.6462, allocations: 115.1 MB / 0.5046 GB, free: 101 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.6465, allocations: 88.42 kB / 0.5047 GB, free: 101 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1979/0.8445, allocations: 86.21 MB / 0.5889 GB, free: 24.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.8445, allocations: 0 / 0.5889 GB, free: 24.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002105/0.8447, allocations: 71.94 kB / 0.5889 GB, free: 24.43 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.007396/0.8521, allocations: 3.194 MB / 0.592 GB, free: 21.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.8522, allocations: 12.03 kB / 0.5921 GB, free: 21.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009432/0.8531, allocations: 391.9 kB / 0.5924 GB, free: 20.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.8549, allocations: 447.6 kB / 0.5929 GB, free: 20.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00421/0.8591, allocations: 1.965 MB / 0.5948 GB, free: 18.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.8592, allocations: 205.4 kB / 0.595 GB, free: 18.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003535/0.8596, allocations: 263.9 kB / 0.5952 GB, free: 17.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00542/0.865, allocations: 3.502 MB / 0.5986 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.118e-05/0.8651, allocations: 7.984 kB / 0.5986 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002423/0.8654, allocations: 116 kB / 0.5988 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001025/0.8655, allocations: 117.3 kB / 0.5989 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00462/0.8701, allocations: 2.859 MB / 0.6017 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01562/0.8857, allocations: 11.22 MB / 0.6126 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003075/0.8889, allocations: 2.337 MB / 0.6149 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003977/0.8893, allocations: 219.5 kB / 0.6151 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.8894, allocations: 51.88 kB / 0.6152 GB, free: 12.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 3.306e-06/0.8894, allocations: 0 / 0.6152 GB, free: 12.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=157): time 0.01934/0.9087, allocations: 8.741 MB / 0.6237 GB, free: 3.832 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.9088, allocations: 68.72 kB / 0.6238 GB, free: 3.754 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003075/0.9119, allocations: 1.735 MB / 0.6255 GB, free: 1.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.9121, allocations: 49.7 kB / 0.6255 GB, free: 1.926 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009832/0.9131, allocations: 1.308 MB / 0.6268 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005419/0.9137, allocations: 0.5275 MB / 0.6273 GB, free: 68 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.9138, allocations: 44 kB / 0.6273 GB, free: 24 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.914, allocations: 378 kB / 0.6277 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.9155, allocations: 0.9447 MB / 0.6286 GB, free: 14.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/0.9173, allocations: 1.403 MB / 0.63 GB, free: 13.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/0.919, allocations: 1.154 MB / 0.6311 GB, free: 11.96 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.9191, allocations: 8 kB / 0.6311 GB, free: 11.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.005642/0.9247, allocations: 3.16 MB / 0.6342 GB, free: 8.773 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.9248, allocations: 14.81 kB / 0.6342 GB, free: 8.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.552e-05/0.9248, allocations: 19.95 kB / 0.6342 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/0.9265, allocations: 0.6313 MB / 0.6349 GB, free: 8.105 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001774/0.9283, allocations: 439.3 kB / 0.6353 GB, free: 7.676 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007808/0.9361, allocations: 5.94 MB / 0.6411 GB, free: 1.605 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/0.9384, allocations: 135.8 kB / 0.6412 GB, free: 1.473 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/0.9387, allocations: 75.98 kB / 0.6413 GB, free: 1.398 MB / 410.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.001888/0.9406, allocations: 0.8604 MB / 0.6421 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006318/0.9412, allocations: 217.4 kB / 0.6423 GB, free: 320 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005126/0.9463, allocations: 2.843 MB / 0.6451 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.9464, allocations: 20 kB / 0.6451 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.9464, allocations: 7.953 kB / 0.6451 GB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.9464, allocations: 7.969 kB / 0.6451 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.9578, allocations: 5.866 MB / 0.6509 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/0.9579, allocations: 0 / 0.6509 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001303/0.9592, allocations: 287.8 kB / 0.6511 GB, free: 7.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/0.9612, allocations: 0.685 MB / 0.6518 GB, free: 6.469 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/0.9614, allocations: 43.98 kB / 0.6519 GB, free: 6.426 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2303/1.192, allocations: 7.699 MB / 0.6594 GB, free: 90.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.192, allocations: 3.281 kB / 0.6594 GB, free: 90.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007245/1.199, allocations: 4.262 MB / 0.6635 GB, free: 89.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/1.201, allocations: 497.1 kB / 0.664 GB, free: 89.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007154/1.201, allocations: 36.44 kB / 0.664 GB, free: 89.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/1.203, allocations: 112.8 kB / 0.6642 GB, free: 89.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004053/1.204, allocations: 125.4 kB / 0.6643 GB, free: 89.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/1.204, allocations: 42.81 kB / 0.6643 GB, free: 89.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002836/1.207, allocations: 1.341 MB / 0.6656 GB, free: 89.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/1.207, allocations: 0 / 0.6656 GB, free: 89.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003308/1.21, allocations: 0.6709 MB / 0.6663 GB, free: 89.44 MB / 426.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.008034/1.218, allocations: 5.505 MB / 0.6717 GB, free: 88.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004998/1.223, allocations: 2.814 MB / 0.6744 GB, free: 87.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.223, allocations: 1.406 kB / 0.6744 GB, free: 87.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002865/1.226, allocations: 1.728 MB / 0.6761 GB, free: 87.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/1.229, allocations: 463 kB / 0.6765 GB, free: 87.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03321/1.262, allocations: 27.06 MB / 0.703 GB, free: 72.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002207/1.264, allocations: 2.204 MB / 0.7051 GB, free: 71.44 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001866/1.266, allocations: 453.1 kB / 0.7055 GB, free: 71.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001401/1.268, allocations: 1.058 MB / 0.7066 GB, free: 71.09 MB / 426.7 MB Notification: Performance of SimCode: time 8.506e-06/1.268, allocations: 0 / 0.7066 GB, free: 71.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07992/1.348, allocations: 55.7 MB / 0.761 GB, free: 38.45 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.348, allocations: 219.8 kB / 0.7612 GB, free: 38.21 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.596/4.944, allocations: 0 / 0.7612 GB, free: 38.21 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat