Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008736/0.0008737, allocations: 176.5 kB / 17.4 MB, free: 4.414 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.328/1.328, allocations: 223.3 MB / 241.4 MB, free: 9.969 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.0007677/0.0007676, allocations: 110.5 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002954, allocations: 15.94 kB / 352.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2134, allocations: 50.4 MB / 402.8 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.4939, allocations: 116.2 MB / 0.5068 GB, free: 100.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.4942, allocations: 89.14 kB / 0.5068 GB, free: 100.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1375/0.6317, allocations: 62.56 MB / 0.5679 GB, free: 46.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6318, allocations: 0 / 0.5679 GB, free: 46.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002741/0.632, allocations: 75.94 kB / 0.568 GB, free: 46.91 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: 731 * Number of variables: 731 Notification: Performance of Generate backend data structure: time 0.007852/0.6399, allocations: 3.413 MB / 0.5713 GB, free: 43.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.64, allocations: 8.031 kB / 0.5713 GB, free: 43.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001877/0.6418, allocations: 484.4 kB / 0.5718 GB, free: 42.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004375/0.6462, allocations: 2.162 MB / 0.5739 GB, free: 40.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.6465, allocations: 388.3 kB / 0.5743 GB, free: 40.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007267/0.6472, allocations: 280.3 kB / 0.5746 GB, free: 40.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006389/0.6536, allocations: 3.69 MB / 0.5782 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-05/0.6538, allocations: 11.98 kB / 0.5782 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002868/0.6541, allocations: 116 kB / 0.5783 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.797e-05/0.6542, allocations: 121.4 kB / 0.5784 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004785/0.659, allocations: 2.934 MB / 0.5813 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01489/0.6739, allocations: 11.98 MB / 0.593 GB, free: 20.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00241/0.6763, allocations: 2.871 MB / 0.5958 GB, free: 17.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/0.6776, allocations: 1.149 MB / 0.5969 GB, free: 16.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002315/0.6779, allocations: 138.4 kB / 0.597 GB, free: 16.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.6792, allocations: 1.175 MB / 0.5982 GB, free: 15.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=156): time 2.945e-06/0.6792, allocations: 0 / 0.5982 GB, free: 15.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=180): time 0.01828/0.6975, allocations: 9.973 MB / 0.6079 GB, free: 4.934 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.6976, allocations: 304.7 kB / 0.6082 GB, free: 4.566 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002593/0.7002, allocations: 2.088 MB / 0.6102 GB, free: 2.441 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/0.7004, allocations: 65.7 kB / 0.6103 GB, free: 2.371 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008239/0.7012, allocations: 1.38 MB / 0.6116 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.7016, allocations: 0.597 MB / 0.6122 GB, free: 380 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.682e-05/0.7017, allocations: 40 kB / 0.6123 GB, free: 340 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.7018, allocations: 394 kB / 0.6126 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.7034, allocations: 1.046 MB / 0.6137 GB, free: 14.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/0.7052, allocations: 1.6 MB / 0.6152 GB, free: 13.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/0.7087, allocations: 2.63 MB / 0.6178 GB, free: 10.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.7087, allocations: 4 kB / 0.6178 GB, free: 10.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006167/0.7149, allocations: 3.679 MB / 0.6214 GB, free: 6.547 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.7152, allocations: 486.2 kB / 0.6219 GB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.7153, allocations: 19.94 kB / 0.6219 GB, free: 5.871 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002886/0.7182, allocations: 1.199 MB / 0.623 GB, free: 4.656 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.7196, allocations: 379.4 kB / 0.6234 GB, free: 4.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01541/0.735, allocations: 14.61 MB / 0.6377 GB, free: 4.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/0.7372, allocations: 171.8 kB / 0.6378 GB, free: 4.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/0.7375, allocations: 79.98 kB / 0.6379 GB, free: 4.625 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.7376, allocations: 4 kB / 0.6379 GB, free: 4.621 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005807/0.7434, allocations: 3.422 MB / 0.6413 GB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.7434, allocations: 16 kB / 0.6413 GB, free: 1.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/0.7461, allocations: 1.192 MB / 0.6424 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.7475, allocations: 375.3 kB / 0.6428 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/0.7629, allocations: 14.57 MB / 0.657 GB, free: 212 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/0.7651, allocations: 159.8 kB / 0.6572 GB, free: 52 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1785/0.9437, allocations: 81.25 kB / 0.6573 GB, free: 92.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 205 * 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: 6 * 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: 3 {(4,100.0%) 14,(3,100.0%) 24,(2,100.0%) 4} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00262/0.9463, allocations: 0.9818 MB / 0.6582 GB, free: 92.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008286/0.9472, allocations: 235.5 kB / 0.6584 GB, free: 92.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006372/0.9536, allocations: 3.516 MB / 0.6619 GB, free: 92.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.9536, allocations: 15 kB / 0.6619 GB, free: 92.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.9536, allocations: 3.969 kB / 0.6619 GB, free: 92.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.9536, allocations: 7.078 kB / 0.6619 GB, free: 92.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/0.9658, allocations: 6.786 MB / 0.6685 GB, free: 91.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.9659, allocations: 3.656 kB / 0.6685 GB, free: 91.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000839/0.9667, allocations: 207.9 kB / 0.6687 GB, free: 91.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003668/0.9704, allocations: 1.429 MB / 0.6701 GB, free: 91.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/0.9706, allocations: 48.36 kB / 0.6702 GB, free: 91.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01517/0.9858, allocations: 14.84 MB / 0.6847 GB, free: 85.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.9858, allocations: 8.344 kB / 0.6847 GB, free: 85.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006692/0.9925, allocations: 4.865 MB / 0.6894 GB, free: 84.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.9936, allocations: 0.5301 MB / 0.6899 GB, free: 84.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003158/0.9939, allocations: 51.09 kB / 0.69 GB, free: 84.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/0.9952, allocations: 137.9 kB / 0.6901 GB, free: 84.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004543/0.9957, allocations: 227.7 kB / 0.6903 GB, free: 84.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.9958, allocations: 55.69 kB / 0.6904 GB, free: 84.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001762/0.9976, allocations: 1.426 MB / 0.6918 GB, free: 83.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9976, allocations: 3.719 kB / 0.6918 GB, free: 83.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003294/1.001, allocations: 1.266 MB / 0.693 GB, free: 83.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 4 {7 52,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004756/1.001, allocations: 338.4 kB / 0.6933 GB, free: 83.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008288/1.01, allocations: 6.379 MB / 0.6996 GB, free: 80.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/1.01, allocations: 0 / 0.6996 GB, free: 80.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/1.013, allocations: 2.487 MB / 0.702 GB, free: 79.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003315/1.016, allocations: 0.5372 MB / 0.7025 GB, free: 78.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009818/1.026, allocations: 7.372 MB / 0.7097 GB, free: 75.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/1.028, allocations: 2.266 MB / 0.7119 GB, free: 74.31 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002081/1.03, allocations: 0.6009 MB / 0.7125 GB, free: 74.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/1.031, allocations: 143.6 kB / 0.7127 GB, free: 74.24 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.031, allocations: 0 / 0.7127 GB, free: 74.24 MB / 426.7 MB Notification: Performance of Templates: time 0.06458/1.095, allocations: 48.39 MB / 0.7599 GB, free: 36.82 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_LoadDump/SMEE_LoadDump.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_LoadDump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches