Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001727/0.001727, allocations: 180.7 kB / 16.38 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.404/1.404, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0008603/0.0008604, allocations: 99.28 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002993, allocations: 12 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1922, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.3089, allocations: 107.8 MB / 0.4974 GB, free: 4.621 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3092, allocations: 87.95 kB / 0.4975 GB, free: 4.535 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2935/0.6027, allocations: 50.42 MB / 0.5467 GB, free: 67.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.6028, allocations: 0 / 0.5467 GB, free: 67.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002385/0.603, allocations: 67.94 kB / 0.5468 GB, free: 67.8 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006679/0.6097, allocations: 2.815 MB / 0.5495 GB, free: 64.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.6098, allocations: 8.031 kB / 0.5496 GB, free: 64.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009343/0.6107, allocations: 349.3 kB / 0.5499 GB, free: 64.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.6119, allocations: 336.3 kB / 0.5502 GB, free: 64.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004094/0.616, allocations: 1.779 MB / 0.5519 GB, free: 62.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.6162, allocations: 180.6 kB / 0.5521 GB, free: 62.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007009/0.6169, allocations: 235.9 kB / 0.5523 GB, free: 61.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005298/0.6222, allocations: 3.115 MB / 0.5554 GB, free: 58.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.03e-05/0.6223, allocations: 11.84 kB / 0.5554 GB, free: 58.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002422/0.6226, allocations: 108 kB / 0.5555 GB, free: 58.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.594e-05/0.6227, allocations: 96.58 kB / 0.5556 GB, free: 58.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004279/0.627, allocations: 2.583 MB / 0.5581 GB, free: 55.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01454/0.6415, allocations: 9.755 MB / 0.5676 GB, free: 45.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.6438, allocations: 2.226 MB / 0.5698 GB, free: 43.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003047/0.6442, allocations: 223.1 kB / 0.57 GB, free: 43.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.6442, allocations: 44.12 kB / 0.5701 GB, free: 43.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.917e-06/0.6442, allocations: 4 kB / 0.5701 GB, free: 43.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.01607/0.6603, allocations: 7.975 MB / 0.5779 GB, free: 35.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.6604, allocations: 68.72 kB / 0.5779 GB, free: 34.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.6627, allocations: 1.523 MB / 0.5794 GB, free: 33.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001631/0.6629, allocations: 49.64 kB / 0.5795 GB, free: 33.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005776/0.6635, allocations: 1.136 MB / 0.5806 GB, free: 32.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003024/0.6638, allocations: 481 kB / 0.581 GB, free: 31.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-05/0.6639, allocations: 36 kB / 0.5811 GB, free: 31.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.686e-05/0.664, allocations: 365.9 kB / 0.5814 GB, free: 31.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.6652, allocations: 0.8627 MB / 0.5823 GB, free: 30.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.6665, allocations: 1.232 MB / 0.5835 GB, free: 29.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.6679, allocations: 1.029 MB / 0.5845 GB, free: 28.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.6679, allocations: 4 kB / 0.5845 GB, free: 28.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004331/0.6722, allocations: 2.856 MB / 0.5873 GB, free: 25.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.6723, allocations: 12 kB / 0.5873 GB, free: 25.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.6723, allocations: 11.94 kB / 0.5873 GB, free: 25.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.6737, allocations: 0.5955 MB / 0.5879 GB, free: 24.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.675, allocations: 363.5 kB / 0.5882 GB, free: 24.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006323/0.6814, allocations: 6.549 MB / 0.5946 GB, free: 17.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.6832, allocations: 115.9 kB / 0.5947 GB, free: 17.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/0.6835, allocations: 64 kB / 0.5948 GB, free: 17.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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: 2 * 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: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00157/0.6851, allocations: 0.7984 MB / 0.5956 GB, free: 16.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/0.6857, allocations: 189.7 kB / 0.5957 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007771/0.6935, allocations: 2.638 MB / 0.5983 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.6936, allocations: 12 kB / 0.5983 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/0.6936, allocations: 12 kB / 0.5983 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/0.6936, allocations: 7.969 kB / 0.5983 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01509/0.7087, allocations: 5.325 MB / 0.6035 GB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.7088, allocations: 8.219 kB / 0.6035 GB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001493/0.7103, allocations: 231.7 kB / 0.6038 GB, free: 7.887 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.7124, allocations: 0.6396 MB / 0.6044 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001477/0.7126, allocations: 35.98 kB / 0.6044 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008058/0.7207, allocations: 8.316 MB / 0.6125 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.7207, allocations: 448 / 0.6125 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006584/0.7273, allocations: 3.944 MB / 0.6164 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/0.7286, allocations: 458.6 kB / 0.6168 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004534/0.7291, allocations: 32.11 kB / 0.6169 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.7303, allocations: 103.9 kB / 0.617 GB, free: 9.848 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003371/0.7307, allocations: 125.1 kB / 0.6171 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.7308, allocations: 43.98 kB / 0.6171 GB, free: 9.684 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002306/0.7331, allocations: 1.171 MB / 0.6183 GB, free: 8.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7331, allocations: 0 / 0.6183 GB, free: 8.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002167/0.7353, allocations: 0.5742 MB / 0.6188 GB, free: 7.945 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007251/0.7426, allocations: 5.165 MB / 0.6239 GB, free: 2.695 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004333/0.7469, allocations: 2.616 MB / 0.6264 GB, free: 28 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.7469, allocations: 320 / 0.6264 GB, free: 28 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002732/0.7497, allocations: 1.686 MB / 0.6281 GB, free: 14.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/0.7519, allocations: 445 kB / 0.6285 GB, free: 13.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02804/0.7799, allocations: 23.21 MB / 0.6512 GB, free: 5.656 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001977/0.7819, allocations: 2.06 MB / 0.6532 GB, free: 3.562 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001358/0.7833, allocations: 435.4 kB / 0.6536 GB, free: 3.133 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/0.7846, allocations: 0.9249 MB / 0.6545 GB, free: 2.211 MB / 426.7 MB Notification: Performance of SimCode: time 4.91e-07/0.7846, allocations: 4 kB / 0.6545 GB, free: 2.207 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2364/1.021, allocations: 49.88 MB / 0.7032 GB, free: 93.11 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001917/1.021, allocations: 222.7 kB / 0.7034 GB, free: 92.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.371/4.393, allocations: 4 kB / 0.7034 GB, free: 92.86 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat