Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001007/0.001006, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000899/0.0008991, allocations: 94.53 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.193e-06, allocations: 4 kB / 343.1 MB, free: 8.773 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.08892, allocations: 51.48 MB / 394.6 MB, free: 5.246 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.274/0.363, allocations: 114.2 MB / 0.4969 GB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.3632, allocations: 86 kB / 0.497 GB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3639/0.7271, allocations: 82.3 MB / 0.5774 GB, free: 83.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001523/0.7272, allocations: 71.86 kB / 0.5774 GB, free: 83.59 MB / 442.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.004173/0.7314, allocations: 2.635 MB / 0.58 GB, free: 82.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.7315, allocations: 10.91 kB / 0.58 GB, free: 82.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001576/0.7331, allocations: 470.4 kB / 0.5805 GB, free: 82.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00299/0.7361, allocations: 1.866 MB / 0.5823 GB, free: 82.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.844e-05/0.7361, allocations: 85.81 kB / 0.5824 GB, free: 82.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002901/0.7364, allocations: 148 kB / 0.5825 GB, free: 82.04 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003457/0.7399, allocations: 2.348 MB / 0.5848 GB, free: 82.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003801/0.7437, allocations: 2.821 MB / 0.5876 GB, free: 81.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.248e-05/0.7438, allocations: 9.844 kB / 0.5876 GB, free: 81.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001962/0.744, allocations: 3.531 kB / 0.5876 GB, free: 81.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.506e-05/0.7441, allocations: 103.9 kB / 0.5877 GB, free: 81.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/0.7574, allocations: 10.03 MB / 0.5975 GB, free: 79.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.7587, allocations: 0.9331 MB / 0.5984 GB, free: 79.1 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.7598, allocations: 0.9181 MB / 0.5993 GB, free: 79.08 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002921/0.7601, allocations: 221 kB / 0.5995 GB, free: 78.89 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.7601, allocations: 48.75 kB / 0.5995 GB, free: 78.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=120): time 2.745e-06/0.7601, allocations: 0 / 0.5995 GB, free: 78.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=146): time 0.009467/0.7696, allocations: 5.516 MB / 0.6049 GB, free: 77.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.253e-05/0.7696, allocations: 65.38 kB / 0.605 GB, free: 77.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/0.7715, allocations: 1.384 MB / 0.6063 GB, free: 77.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.7716, allocations: 25.7 kB / 0.6063 GB, free: 77.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000342/0.772, allocations: 0.993 MB / 0.6073 GB, free: 77.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002774/0.7723, allocations: 485.7 kB / 0.6078 GB, free: 76.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.011e-05/0.7723, allocations: 0 / 0.6078 GB, free: 76.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.45e-05/0.7724, allocations: 374.7 kB / 0.6081 GB, free: 76.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009415/0.7734, allocations: 0.8092 MB / 0.6089 GB, free: 76.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.7745, allocations: 1.283 MB / 0.6102 GB, free: 75.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.7758, allocations: 1.022 MB / 0.6112 GB, free: 75.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.7758, allocations: 3.375 kB / 0.6112 GB, free: 75.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004184/0.78, allocations: 2.713 MB / 0.6138 GB, free: 75.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.7801, allocations: 9.594 kB / 0.6138 GB, free: 75.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/0.7801, allocations: 24.39 kB / 0.6139 GB, free: 75.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.7816, allocations: 0.577 MB / 0.6144 GB, free: 75.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/0.7832, allocations: 415.2 kB / 0.6148 GB, free: 75.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005948/0.7892, allocations: 4.909 MB / 0.6196 GB, free: 73.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.791, allocations: 86.19 kB / 0.6197 GB, free: 73.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.7911, allocations: 80.36 kB / 0.6198 GB, free: 73.16 MB / 442.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.0002866/0.7914, allocations: 150.2 kB / 0.6199 GB, free: 73.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003277/0.7918, allocations: 183 kB / 0.6201 GB, free: 72.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/0.7957, allocations: 2.451 MB / 0.6225 GB, free: 72.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.7957, allocations: 14.34 kB / 0.6225 GB, free: 72.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.7958, allocations: 9.969 kB / 0.6225 GB, free: 72.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.7958, allocations: 7.828 kB / 0.6225 GB, free: 72.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007398/0.8032, allocations: 5.013 MB / 0.6274 GB, free: 70.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.8032, allocations: 3.562 kB / 0.6274 GB, free: 70.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.8043, allocations: 262.5 kB / 0.6277 GB, free: 70.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001673/0.806, allocations: 0.641 MB / 0.6283 GB, free: 69.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.8061, allocations: 15.31 kB / 0.6283 GB, free: 69.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007068/0.8132, allocations: 6.507 MB / 0.6347 GB, free: 65.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.145e-05/0.8132, allocations: 7.094 kB / 0.6347 GB, free: 65.95 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005911/0.8191, allocations: 3.921 MB / 0.6385 GB, free: 64.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009655/0.8201, allocations: 455.2 kB / 0.6389 GB, free: 63.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/0.8205, allocations: 15.97 kB / 0.6389 GB, free: 63.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.8217, allocations: 85.67 kB / 0.639 GB, free: 63.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.8219, allocations: 90.89 kB / 0.6391 GB, free: 63.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.822, allocations: 43.42 kB / 0.6392 GB, free: 63.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001476/0.8235, allocations: 1.046 MB / 0.6402 GB, free: 63.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001878/0.8254, allocations: 0.5331 MB / 0.6407 GB, free: 63.33 MB / 442.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.0005119/0.8259, allocations: 335.8 kB / 0.641 GB, free: 63.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003492/0.8294, allocations: 2.388 MB / 0.6433 GB, free: 62.26 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.8294, allocations: 1.219 kB / 0.6433 GB, free: 62.26 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002228/0.8316, allocations: 1.474 MB / 0.6448 GB, free: 61.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.8335, allocations: 300.8 kB / 0.6451 GB, free: 61.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00883/0.8423, allocations: 4.192 MB / 0.6492 GB, free: 59.76 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002053/0.8444, allocations: 2.188 MB / 0.6513 GB, free: 58.79 MB / 442.7 MB Notification: Performance of SimCode: time 7.81e-07/0.8444, allocations: 0 / 0.6513 GB, free: 58.79 MB / 442.7 MB Notification: Performance of Templates: time 0.04283/0.8873, allocations: 25.83 MB / 0.6765 GB, free: 57.41 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches