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.001234/0.001234, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.466/1.466, allocations: 221.3 MB / 235.5 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008456/0.0008456, allocations: 99.78 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.433e-05/2.435e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09335/0.09338, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3527/0.4461, allocations: 115 MB / 0.4975 GB, free: 4.383 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.4464, allocations: 83.95 kB / 0.4975 GB, free: 4.301 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4481/0.8945, allocations: 86.35 MB / 0.5819 GB, free: 99.53 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.8946, allocations: 0 / 0.5819 GB, free: 99.53 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002022/0.8948, allocations: 73.75 kB / 0.5819 GB, free: 99.51 MB / 426.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.005845/0.9006, allocations: 2.806 MB / 0.5847 GB, free: 98.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.9007, allocations: 7.75 kB / 0.5847 GB, free: 98.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005444/0.9013, allocations: 379.2 kB / 0.585 GB, free: 98.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/0.9026, allocations: 447 kB / 0.5855 GB, free: 98.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003469/0.9061, allocations: 1.957 MB / 0.5874 GB, free: 97.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.9063, allocations: 204 kB / 0.5876 GB, free: 97.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000393/0.9067, allocations: 272.2 kB / 0.5878 GB, free: 97.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005051/0.9117, allocations: 3.4 MB / 0.5911 GB, free: 95.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.999e-05/0.9118, allocations: 7.812 kB / 0.5912 GB, free: 95.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002471/0.9121, allocations: 114.9 kB / 0.5913 GB, free: 95.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.723e-05/0.9122, allocations: 111.5 kB / 0.5914 GB, free: 95.49 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004012/0.9162, allocations: 2.694 MB / 0.594 GB, free: 94.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01597/0.9322, allocations: 11.24 MB / 0.605 GB, free: 88.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.9344, allocations: 2.25 MB / 0.6072 GB, free: 87 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.9355, allocations: 0.9828 MB / 0.6081 GB, free: 86.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003077/0.9358, allocations: 223.7 kB / 0.6083 GB, free: 86.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.9359, allocations: 46.66 kB / 0.6084 GB, free: 86.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 3.256e-06/0.9359, allocations: 0 / 0.6084 GB, free: 86.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.01449/0.9504, allocations: 7.216 MB / 0.6154 GB, free: 83.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.9504, allocations: 69.19 kB / 0.6155 GB, free: 83.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002941/0.9534, allocations: 1.716 MB / 0.6172 GB, free: 83.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.9536, allocations: 57.48 kB / 0.6172 GB, free: 83.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006494/0.9542, allocations: 1.299 MB / 0.6185 GB, free: 82.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003785/0.9546, allocations: 0.5381 MB / 0.619 GB, free: 81.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.9548, allocations: 34.66 kB / 0.6191 GB, free: 81.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.718e-05/0.9549, allocations: 378 kB / 0.6194 GB, free: 81.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.956, allocations: 0.8797 MB / 0.6203 GB, free: 80.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.9573, allocations: 1.33 MB / 0.6216 GB, free: 79.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.9587, allocations: 1.095 MB / 0.6227 GB, free: 78.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.9587, allocations: 4 kB / 0.6227 GB, free: 78.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.004546/0.9633, allocations: 3.043 MB / 0.6256 GB, free: 75.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.9633, allocations: 13.41 kB / 0.6256 GB, free: 75.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-05/0.9634, allocations: 16 kB / 0.6257 GB, free: 75.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/0.9649, allocations: 0.6247 MB / 0.6263 GB, free: 74.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/0.9664, allocations: 438.2 kB / 0.6267 GB, free: 74.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006632/0.973, allocations: 5.716 MB / 0.6323 GB, free: 69.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/0.9753, allocations: 127.9 kB / 0.6324 GB, free: 69.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003794/0.9757, allocations: 79.98 kB / 0.6325 GB, free: 68.94 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 193 * 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.0004962/0.9762, allocations: 204.5 kB / 0.6327 GB, free: 68.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006995/0.9769, allocations: 217.4 kB / 0.6329 GB, free: 68.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00478/0.9817, allocations: 2.726 MB / 0.6355 GB, free: 65.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.9817, allocations: 12 kB / 0.6355 GB, free: 65.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/0.9817, allocations: 11.25 kB / 0.6355 GB, free: 65.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.9818, allocations: 11.91 kB / 0.6356 GB, free: 65.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.9932, allocations: 5.765 MB / 0.6412 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/0.9932, allocations: 4 kB / 0.6412 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.9944, allocations: 287.9 kB / 0.6415 GB, free: 59.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001799/0.9962, allocations: 0.685 MB / 0.6421 GB, free: 58.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/0.9964, allocations: 43.98 kB / 0.6422 GB, free: 58.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007912/1.004, allocations: 7.424 MB / 0.6494 GB, free: 51.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.004, allocations: 4 kB / 0.6494 GB, free: 51.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006231/1.011, allocations: 4.134 MB / 0.6535 GB, free: 46.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001546/1.012, allocations: 0.4904 MB / 0.654 GB, free: 46.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007816/1.013, allocations: 39.98 kB / 0.654 GB, free: 46.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/1.015, allocations: 115.9 kB / 0.6541 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003928/1.015, allocations: 125.1 kB / 0.6542 GB, free: 46.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/1.015, allocations: 47.98 kB / 0.6543 GB, free: 46.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002496/1.018, allocations: 1.317 MB / 0.6556 GB, free: 44.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.018, allocations: 0 / 0.6556 GB, free: 44.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00307/1.021, allocations: 0.6835 MB / 0.6562 GB, free: 44.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 118 * 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,75.0%) 27,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006674/1.028, allocations: 5.564 MB / 0.6617 GB, free: 38.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00394/1.032, allocations: 2.666 MB / 0.6643 GB, free: 35.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.032, allocations: 0 / 0.6643 GB, free: 35.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002403/1.034, allocations: 1.681 MB / 0.6659 GB, free: 33.99 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002878/1.037, allocations: 470 kB / 0.6663 GB, free: 33.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/1.049, allocations: 5.386 MB / 0.6716 GB, free: 28.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002009/1.051, allocations: 2.209 MB / 0.6738 GB, free: 25.88 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001884/1.053, allocations: 448.9 kB / 0.6742 GB, free: 25.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/1.055, allocations: 1.066 MB / 0.6752 GB, free: 24.38 MB / 426.7 MB Notification: Performance of SimCode: time 1.333e-06/1.055, allocations: 0 / 0.6752 GB, free: 24.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3932/1.448, allocations: 55.97 MB / 0.7299 GB, free: 106.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/1.448, allocations: 200.6 kB / 0.7301 GB, free: 106.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.367/4.816, allocations: 0 / 0.7301 GB, free: 106.5 MB / 442.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