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.001645/0.001645, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000874/0.0008743, allocations: 87.14 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.966e-05/4.003e-05, allocations: 4 kB / 350.7 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3501/0.4673, allocations: 115.9 MB / 0.5059 GB, free: 6.137 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.4676, allocations: 86.78 kB / 0.5059 GB, free: 6.094 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4773/0.9449, allocations: 86.46 MB / 0.5904 GB, free: 78.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.945, allocations: 3.062 kB / 0.5904 GB, free: 78.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003222/0.9453, allocations: 69.64 kB / 0.5904 GB, free: 78.71 MB / 442.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.007566/0.9529, allocations: 2.809 MB / 0.5932 GB, free: 77.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.9529, allocations: 10.67 kB / 0.5932 GB, free: 77.65 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001206/0.9541, allocations: 382.3 kB / 0.5936 GB, free: 77.6 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002428/0.9566, allocations: 482.7 kB / 0.594 GB, free: 77.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004924/0.9615, allocations: 1.956 MB / 0.5959 GB, free: 76.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.9617, allocations: 201.3 kB / 0.5961 GB, free: 76.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007631/0.9625, allocations: 271.8 kB / 0.5964 GB, free: 76.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007933/0.9705, allocations: 3.405 MB / 0.5997 GB, free: 76.53 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.9706, allocations: 0.5625 kB / 0.5997 GB, free: 76.53 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004626/0.9711, allocations: 118.1 kB / 0.5998 GB, free: 76.53 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/0.9712, allocations: 116 kB / 0.5999 GB, free: 76.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005222/0.9765, allocations: 2.695 MB / 0.6026 GB, free: 76.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02376/1, allocations: 11.24 MB / 0.6135 GB, free: 73.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003337/1.004, allocations: 2.253 MB / 0.6157 GB, free: 72.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/1.005, allocations: 0.9838 MB / 0.6167 GB, free: 72.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003998/1.006, allocations: 220.5 kB / 0.6169 GB, free: 72.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/1.006, allocations: 45.28 kB / 0.6169 GB, free: 72.48 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 3.717e-06/1.006, allocations: 0 / 0.6169 GB, free: 72.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.0191/1.025, allocations: 7.222 MB / 0.624 GB, free: 71.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.898e-05/1.025, allocations: 67.81 kB / 0.6241 GB, free: 71.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005445/1.031, allocations: 1.72 MB / 0.6257 GB, free: 70.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004453/1.031, allocations: 51.83 kB / 0.6258 GB, free: 70.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/1.032, allocations: 1.297 MB / 0.6271 GB, free: 69.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000748/1.033, allocations: 0.5349 MB / 0.6276 GB, free: 69.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/1.033, allocations: 39.22 kB / 0.6276 GB, free: 69.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/1.034, allocations: 375.3 kB / 0.628 GB, free: 68.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001744/1.035, allocations: 0.8821 MB / 0.6288 GB, free: 68.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/1.037, allocations: 1.333 MB / 0.6301 GB, free: 67.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/1.039, allocations: 1.098 MB / 0.6312 GB, free: 67.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/1.039, allocations: 3.625 kB / 0.6312 GB, free: 67.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005368/1.044, allocations: 3.033 MB / 0.6342 GB, free: 66.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/1.044, allocations: 10.34 kB / 0.6342 GB, free: 66.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-05/1.044, allocations: 20.27 kB / 0.6342 GB, free: 66.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001639/1.046, allocations: 0.6282 MB / 0.6348 GB, free: 66.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/1.047, allocations: 437.8 kB / 0.6352 GB, free: 66.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006998/1.054, allocations: 5.706 MB / 0.6408 GB, free: 62.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/1.057, allocations: 135 kB / 0.6409 GB, free: 62.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003793/1.057, allocations: 77.33 kB / 0.641 GB, free: 62.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 () * 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.0005481/1.058, allocations: 219.8 kB / 0.6412 GB, free: 62.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007146/1.059, allocations: 210.1 kB / 0.6414 GB, free: 62.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004611/1.063, allocations: 2.72 MB / 0.6441 GB, free: 61.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/1.063, allocations: 19.41 kB / 0.6441 GB, free: 61.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/1.063, allocations: 6.562 kB / 0.6441 GB, free: 61.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/1.063, allocations: 7.547 kB / 0.6441 GB, free: 61.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/1.074, allocations: 5.776 MB / 0.6498 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-05/1.074, allocations: 3.688 kB / 0.6498 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/1.076, allocations: 287.3 kB / 0.65 GB, free: 59.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/1.077, allocations: 0.6812 MB / 0.6507 GB, free: 59.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000173/1.078, allocations: 41.5 kB / 0.6507 GB, free: 59.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008/1.086, allocations: 7.42 MB / 0.658 GB, free: 54.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.086, allocations: 3.812 kB / 0.658 GB, free: 54.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006164/1.092, allocations: 4.141 MB / 0.662 GB, free: 52.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/1.093, allocations: 0.4899 MB / 0.6625 GB, free: 52.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000771/1.094, allocations: 34.75 kB / 0.6625 GB, free: 52.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/1.096, allocations: 120.1 kB / 0.6627 GB, free: 52.17 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003443/1.096, allocations: 126.9 kB / 0.6628 GB, free: 52.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/1.096, allocations: 50.97 kB / 0.6628 GB, free: 52.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002509/1.099, allocations: 1.315 MB / 0.6641 GB, free: 51.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.099, allocations: 0 / 0.6641 GB, free: 51.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002852/1.102, allocations: 0.6859 MB / 0.6648 GB, free: 51.5 MB / 442.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.006756/1.108, allocations: 5.573 MB / 0.6702 GB, free: 48.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004186/1.113, allocations: 2.658 MB / 0.6728 GB, free: 47.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/1.113, allocations: 0 / 0.6728 GB, free: 47.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002481/1.115, allocations: 1.687 MB / 0.6745 GB, free: 46.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002934/1.118, allocations: 455.4 kB / 0.6749 GB, free: 46.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/1.131, allocations: 5.401 MB / 0.6802 GB, free: 44.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002411/1.134, allocations: 2.207 MB / 0.6823 GB, free: 43.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002032/1.136, allocations: 453.9 kB / 0.6828 GB, free: 43.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/1.138, allocations: 1.063 MB / 0.6838 GB, free: 42.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.693e-06/1.138, allocations: 0 / 0.6838 GB, free: 42.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0936/1.231, allocations: 56.1 MB / 0.7386 GB, free: 10.77 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/1.231, allocations: 193.6 kB / 0.7388 GB, free: 10.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.578/4.809, allocations: 4 kB / 0.7388 GB, free: 10.54 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