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.001274/0.001273, 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.397/1.397, allocations: 221.3 MB / 235.5 MB, free: 2.973 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.000872/0.0008719, allocations: 91.8 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.717e-05/2.719e-05, allocations: 8 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1342, allocations: 50.42 MB / 394.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.372/0.5063, allocations: 107.7 MB / 0.4903 GB, free: 11.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.5066, allocations: 83.95 kB / 0.4903 GB, free: 11.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1332/0.6398, allocations: 50.5 MB / 0.5397 GB, free: 8.809 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.6399, allocations: 4 kB / 0.5397 GB, free: 8.805 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002753/0.6401, allocations: 71.92 kB / 0.5397 GB, free: 8.734 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006929/0.6471, allocations: 2.503 MB / 0.5422 GB, free: 6.172 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.587e-05/0.6472, allocations: 8.031 kB / 0.5422 GB, free: 6.164 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005642/0.6477, allocations: 341.4 kB / 0.5425 GB, free: 5.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009899/0.6487, allocations: 336.3 kB / 0.5428 GB, free: 5.488 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003328/0.6521, allocations: 1.771 MB / 0.5446 GB, free: 3.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.6522, allocations: 176.7 kB / 0.5447 GB, free: 3.484 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003346/0.6526, allocations: 232.6 kB / 0.545 GB, free: 3.258 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004817/0.6574, allocations: 3.034 MB / 0.5479 GB, free: 76 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.73e-05/0.6575, allocations: 19.77 kB / 0.5479 GB, free: 56 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.2621/0.9196, allocations: 97.5 kB / 0.548 GB, free: 101.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001656/0.9198, allocations: 98.62 kB / 0.5481 GB, free: 101.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007244/0.927, allocations: 2.453 MB / 0.5505 GB, free: 101.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01978/0.9469, allocations: 9.751 MB / 0.56 GB, free: 99.63 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002952/0.9499, allocations: 2.164 MB / 0.5622 GB, free: 98.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.9515, allocations: 0.927 MB / 0.5631 GB, free: 98.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003817/0.9519, allocations: 217.3 kB / 0.5633 GB, free: 98.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.952, allocations: 51.11 kB / 0.5633 GB, free: 98.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.017e-06/0.952, allocations: 1.062 kB / 0.5633 GB, free: 98.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.01585/0.9679, allocations: 6.49 MB / 0.5697 GB, free: 97.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.9679, allocations: 68.62 kB / 0.5697 GB, free: 97.67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002677/0.9706, allocations: 1.502 MB / 0.5712 GB, free: 97.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001831/0.9708, allocations: 50.3 kB / 0.5712 GB, free: 97.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008232/0.9716, allocations: 1.137 MB / 0.5723 GB, free: 96.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003707/0.972, allocations: 483.4 kB / 0.5728 GB, free: 96.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.001e-05/0.9721, allocations: 30.84 kB / 0.5728 GB, free: 96.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.9722, allocations: 375.8 kB / 0.5732 GB, free: 96.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.9735, allocations: 0.7999 MB / 0.574 GB, free: 95.74 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.9747, allocations: 1.18 MB / 0.5751 GB, free: 95.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.9759, allocations: 0.967 MB / 0.5761 GB, free: 94.67 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.9759, allocations: 3.875 kB / 0.5761 GB, free: 94.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.004268/0.9802, allocations: 2.731 MB / 0.5787 GB, free: 93.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.9802, allocations: 12.12 kB / 0.5788 GB, free: 93.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.9803, allocations: 10.03 kB / 0.5788 GB, free: 93.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.9816, allocations: 0.5839 MB / 0.5793 GB, free: 93.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.983, allocations: 374.3 kB / 0.5797 GB, free: 93.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006469/0.9894, allocations: 6.317 MB / 0.5859 GB, free: 89.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.9915, allocations: 119 kB / 0.586 GB, free: 89.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.9916, allocations: 58.81 kB / 0.586 GB, free: 89.48 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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.0003259/0.992, allocations: 198.9 kB / 0.5862 GB, free: 89.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003288/0.9923, allocations: 193.9 kB / 0.5864 GB, free: 89.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/0.9964, allocations: 2.512 MB / 0.5889 GB, free: 88.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.9965, allocations: 18.7 kB / 0.5889 GB, free: 88.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.9965, allocations: 7.5 kB / 0.5889 GB, free: 88.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.9965, allocations: 6.984 kB / 0.5889 GB, free: 88.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00847/1.005, allocations: 5.263 MB / 0.594 GB, free: 86.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/1.005, allocations: 3.469 kB / 0.594 GB, free: 86.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009275/1.006, allocations: 235.2 kB / 0.5943 GB, free: 86.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001504/1.007, allocations: 0.646 MB / 0.5949 GB, free: 86.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/1.008, allocations: 29.42 kB / 0.5949 GB, free: 86.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007392/1.015, allocations: 8.05 MB / 0.6028 GB, free: 80.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.015, allocations: 3.938 kB / 0.6028 GB, free: 80.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007636/1.023, allocations: 3.827 MB / 0.6065 GB, free: 78.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001837/1.025, allocations: 450.6 kB / 0.6069 GB, free: 78.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000725/1.025, allocations: 30.56 kB / 0.607 GB, free: 78.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/1.027, allocations: 101.2 kB / 0.6071 GB, free: 78.41 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003664/1.027, allocations: 127.6 kB / 0.6072 GB, free: 78.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/1.027, allocations: 41.09 kB / 0.6072 GB, free: 78.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00235/1.03, allocations: 1.163 MB / 0.6084 GB, free: 77.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.03, allocations: 0 / 0.6084 GB, free: 77.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003043/1.033, allocations: 0.5718 MB / 0.6089 GB, free: 77.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * 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.006691/1.04, allocations: 5.248 MB / 0.6141 GB, free: 74.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004296/1.044, allocations: 2.48 MB / 0.6165 GB, free: 73.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.044, allocations: 0 / 0.6165 GB, free: 73.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002742/1.047, allocations: 1.629 MB / 0.6181 GB, free: 73.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/1.05, allocations: 448.2 kB / 0.6185 GB, free: 72.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/1.063, allocations: 4.823 MB / 0.6232 GB, free: 68.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002364/1.065, allocations: 2.074 MB / 0.6252 GB, free: 66.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002089/1.068, allocations: 430.8 kB / 0.6256 GB, free: 66.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/1.069, allocations: 0.9174 MB / 0.6265 GB, free: 65.69 MB / 426.7 MB Notification: Performance of SimCode: time 1.383e-06/1.069, allocations: 4 kB / 0.6265 GB, free: 65.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08343/1.153, allocations: 50.03 MB / 0.6754 GB, free: 21.92 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/1.153, allocations: 196.6 kB / 0.6756 GB, free: 21.69 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.241/4.393, allocations: 0 / 0.6756 GB, free: 21.69 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