Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009625/0.0009626, allocations: 181.6 kB / 8.135 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.137/1.137, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.0009319/0.0009319, allocations: 105.7 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.991e-06/6.021e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1848, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.2971, allocations: 113.4 MB / 0.4886 GB, free: 5.387 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.2974, allocations: 83.89 kB / 0.4886 GB, free: 5.305 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3149/0.6123, allocations: 82.21 MB / 0.5689 GB, free: 41.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001362/0.6125, allocations: 71.88 kB / 0.569 GB, free: 41.04 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.00422/0.6167, allocations: 2.624 MB / 0.5716 GB, free: 38.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.6168, allocations: 8.031 kB / 0.5716 GB, free: 38.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.618, allocations: 424 kB / 0.572 GB, free: 37.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002919/0.621, allocations: 1.869 MB / 0.5738 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.549e-05/0.621, allocations: 84 kB / 0.5739 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002836/0.6213, allocations: 152 kB / 0.574 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003387/0.6247, allocations: 2.353 MB / 0.5763 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003813/0.6286, allocations: 2.814 MB / 0.5791 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.205e-05/0.6286, allocations: 3.938 kB / 0.5791 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/0.6288, allocations: 4 kB / 0.5791 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.796e-05/0.6289, allocations: 108.9 kB / 0.5792 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01314/0.6421, allocations: 10.03 MB / 0.589 GB, free: 19.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.6433, allocations: 0.9358 MB / 0.5899 GB, free: 19.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.6444, allocations: 0.9252 MB / 0.5908 GB, free: 18.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002836/0.6447, allocations: 207.2 kB / 0.591 GB, free: 17.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.6447, allocations: 52.3 kB / 0.591 GB, free: 17.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 3.025e-06/0.6447, allocations: 0 / 0.591 GB, free: 17.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=146): time 0.009214/0.6539, allocations: 5.526 MB / 0.5964 GB, free: 12.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.654, allocations: 64.72 kB / 0.5965 GB, free: 12.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.6556, allocations: 1.387 MB / 0.5979 GB, free: 10.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.546e-05/0.6557, allocations: 25.7 kB / 0.5979 GB, free: 10.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003129/0.656, allocations: 0.9859 MB / 0.5988 GB, free: 9.738 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002623/0.6563, allocations: 496.7 kB / 0.5993 GB, free: 9.246 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.417e-05/0.6564, allocations: 0 / 0.5993 GB, free: 9.246 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.275e-05/0.6565, allocations: 373.8 kB / 0.5997 GB, free: 8.875 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009513/0.6574, allocations: 0.8083 MB / 0.6005 GB, free: 8.066 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.6585, allocations: 1.283 MB / 0.6017 GB, free: 6.578 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.6598, allocations: 1.021 MB / 0.6027 GB, free: 5.559 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.6598, allocations: 4 kB / 0.6027 GB, free: 5.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003886/0.6637, allocations: 2.724 MB / 0.6054 GB, free: 2.816 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.6637, allocations: 7.125 kB / 0.6054 GB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.758e-05/0.6637, allocations: 16 kB / 0.6054 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.6651, allocations: 0.58 MB / 0.606 GB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.6666, allocations: 407.4 kB / 0.6064 GB, free: 1.812 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006344/0.673, allocations: 4.895 MB / 0.6111 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.6746, allocations: 91.81 kB / 0.6112 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/0.6747, allocations: 79.98 kB / 0.6113 GB, free: 12.63 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 186 * 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%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002778/0.675, allocations: 151.3 kB / 0.6114 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003314/0.6753, allocations: 181.8 kB / 0.6116 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004369/0.6797, allocations: 2.443 MB / 0.614 GB, free: 9.832 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.6797, allocations: 16 kB / 0.614 GB, free: 9.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.6798, allocations: 4 kB / 0.614 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.6798, allocations: 11.88 kB / 0.614 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008388/0.6882, allocations: 5.028 MB / 0.6189 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/0.6882, allocations: 4 kB / 0.6189 GB, free: 4.664 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.6894, allocations: 256.1 kB / 0.6192 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/0.6912, allocations: 0.6378 MB / 0.6198 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.6913, allocations: 23.98 kB / 0.6198 GB, free: 3.746 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008132/0.6995, allocations: 6.496 MB / 0.6262 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.6995, allocations: 8 kB / 0.6262 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005654/0.7052, allocations: 3.934 MB / 0.63 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009166/0.7061, allocations: 450.7 kB / 0.6305 GB, free: 8.434 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.7064, allocations: 15.92 kB / 0.6305 GB, free: 8.418 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.7076, allocations: 83.91 kB / 0.6306 GB, free: 8.336 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.7078, allocations: 89.19 kB / 0.6306 GB, free: 8.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.708, allocations: 47.89 kB / 0.6307 GB, free: 8.203 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001514/0.7095, allocations: 1.048 MB / 0.6317 GB, free: 7.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001845/0.7113, allocations: 0.5311 MB / 0.6322 GB, free: 6.629 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005622/0.7119, allocations: 320.1 kB / 0.6325 GB, free: 6.305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003648/0.7156, allocations: 2.381 MB / 0.6349 GB, free: 3.879 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.7156, allocations: 0.75 kB / 0.6349 GB, free: 3.879 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002492/0.7181, allocations: 1.475 MB / 0.6363 GB, free: 2.371 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.7199, allocations: 303.9 kB / 0.6366 GB, free: 2.074 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008247/0.7282, allocations: 4.201 MB / 0.6407 GB, free: 13.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00232/0.7305, allocations: 2.181 MB / 0.6428 GB, free: 11.55 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/0.7306, allocations: 0 / 0.6428 GB, free: 11.55 MB / 426.7 MB Notification: Performance of Templates: time 0.1554/0.886, allocations: 25.77 MB / 0.668 GB, free: 132.8 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches