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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 180.2 kB / 16.38 MB, free: 5.758 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.24/1.24, allocations: 223.2 MB / 240.3 MB, free: 10.13 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.0008493/0.0008494, allocations: 90.53 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002542, allocations: 15.94 kB / 351.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2205, allocations: 50.4 MB / 401.5 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1203/0.3409, allocations: 107.8 MB / 0.4973 GB, free: 4.637 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.3412, allocations: 87.95 kB / 0.4974 GB, free: 4.551 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2742/0.6155, allocations: 50.43 MB / 0.5467 GB, free: 67.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.6155, allocations: 0 / 0.5467 GB, free: 67.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.6157, allocations: 63.94 kB / 0.5467 GB, free: 67.79 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.005121/0.6208, allocations: 2.804 MB / 0.5495 GB, free: 64.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.6208, allocations: 8.031 kB / 0.5495 GB, free: 64.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007224/0.6216, allocations: 332.3 kB / 0.5498 GB, free: 64.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/0.6247, allocations: 1.791 MB / 0.5515 GB, free: 62.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.271e-05/0.6248, allocations: 180.6 kB / 0.5517 GB, free: 62.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002659/0.625, allocations: 231.9 kB / 0.5519 GB, free: 62.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003821/0.6289, allocations: 3.115 MB / 0.555 GB, free: 59.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.881e-05/0.6289, allocations: 15.89 kB / 0.555 GB, free: 59.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001927/0.6291, allocations: 99.95 kB / 0.5551 GB, free: 58.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.041e-05/0.6292, allocations: 104.5 kB / 0.5552 GB, free: 58.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003349/0.6326, allocations: 2.587 MB / 0.5577 GB, free: 56.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.6438, allocations: 9.747 MB / 0.5672 GB, free: 46.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002034/0.6459, allocations: 2.23 MB / 0.5694 GB, free: 43.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002597/0.6462, allocations: 215.2 kB / 0.5696 GB, free: 43.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.991e-05/0.6462, allocations: 43.56 kB / 0.5696 GB, free: 43.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 2.845e-06/0.6462, allocations: 0 / 0.5696 GB, free: 43.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.01373/0.6599, allocations: 7.981 MB / 0.5774 GB, free: 35.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.814e-05/0.66, allocations: 72.66 kB / 0.5775 GB, free: 35.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/0.6618, allocations: 1.523 MB / 0.579 GB, free: 33.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.6619, allocations: 45.7 kB / 0.579 GB, free: 33.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004844/0.6624, allocations: 1.136 MB / 0.5801 GB, free: 32.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002533/0.6627, allocations: 485 kB / 0.5806 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.457e-05/0.6628, allocations: 32 kB / 0.5806 GB, free: 32.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.64e-05/0.6628, allocations: 369.9 kB / 0.581 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.6639, allocations: 0.8627 MB / 0.5818 GB, free: 30.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.665, allocations: 1.232 MB / 0.583 GB, free: 29.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.6662, allocations: 1.029 MB / 0.584 GB, free: 28.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.6663, allocations: 4 kB / 0.584 GB, free: 28.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003843/0.6701, allocations: 2.852 MB / 0.5868 GB, free: 25.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.6702, allocations: 12 kB / 0.5868 GB, free: 25.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.6702, allocations: 12 kB / 0.5869 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.6714, allocations: 0.5918 MB / 0.5874 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.6727, allocations: 367.4 kB / 0.5878 GB, free: 24.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005767/0.6784, allocations: 6.546 MB / 0.5942 GB, free: 17.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/0.68, allocations: 119.9 kB / 0.5943 GB, free: 17.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.6801, allocations: 63.98 kB / 0.5944 GB, free: 17.57 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.001347/0.6815, allocations: 0.8009 MB / 0.5951 GB, free: 16.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003489/0.6818, allocations: 189.7 kB / 0.5953 GB, free: 16.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003755/0.6856, allocations: 2.634 MB / 0.5979 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.6856, allocations: 12 kB / 0.5979 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.6856, allocations: 12.12 kB / 0.5979 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.6856, allocations: 7.969 kB / 0.5979 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007584/0.6932, allocations: 5.34 MB / 0.6031 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6933, allocations: 0 / 0.6031 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009068/0.6942, allocations: 235.9 kB / 0.6034 GB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.6956, allocations: 0.6308 MB / 0.604 GB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.718e-05/0.6957, allocations: 35.98 kB / 0.604 GB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007182/0.7029, allocations: 8.328 MB / 0.6121 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.7029, allocations: 0 / 0.6121 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005982/0.7089, allocations: 3.944 MB / 0.616 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.7101, allocations: 454.6 kB / 0.6164 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.7104, allocations: 31.98 kB / 0.6165 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009384/0.7113, allocations: 99.89 kB / 0.6166 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.7116, allocations: 129 kB / 0.6167 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-05/0.7117, allocations: 39.94 kB / 0.6167 GB, free: 10.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00169/0.7134, allocations: 1.179 MB / 0.6179 GB, free: 8.852 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7134, allocations: 0 / 0.6179 GB, free: 8.852 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001775/0.7152, allocations: 0.5703 MB / 0.6184 GB, free: 8.281 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.0006065/0.7158, allocations: 322.9 kB / 0.6187 GB, free: 7.957 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004402/0.7202, allocations: 2.609 MB / 0.6213 GB, free: 5.297 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.7202, allocations: 4.25 kB / 0.6213 GB, free: 5.293 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.7228, allocations: 1.686 MB / 0.6229 GB, free: 3.562 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.7248, allocations: 433.4 kB / 0.6233 GB, free: 3.141 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007974/0.7328, allocations: 5.989 MB / 0.6292 GB, free: 13.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.7345, allocations: 2.075 MB / 0.6312 GB, free: 10.99 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001267/0.7358, allocations: 427.5 kB / 0.6316 GB, free: 10.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.7361, allocations: 127.4 kB / 0.6317 GB, free: 10.45 MB / 410.7 MB Notification: Performance of SimCode: time 5.66e-06/0.7361, allocations: 0 / 0.6317 GB, free: 10.45 MB / 410.7 MB Notification: Performance of Templates: time 0.2136/0.9498, allocations: 30.2 MB / 0.6612 GB, free: 109.7 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches