Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [: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.001069/0.001069, allocations: 198.8 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 225.5 MB / 234.4 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009512/0.0009512, allocations: 96.44 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.992e-06/6.022e-06, allocations: 0 / 343.1 MB, free: 8.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09073/0.09076, allocations: 51.48 MB / 394.6 MB, free: 4.969 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.252/0.3428, allocations: 107.8 MB / 0.4906 GB, free: 1.629 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.3431, allocations: 81.7 kB / 0.4907 GB, free: 1.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1367/0.4798, allocations: 49.75 MB / 0.5393 GB, free: 4.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002937/0.4801, allocations: 67.92 kB / 0.5393 GB, free: 4.664 MB / 410.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.008006/0.4881, allocations: 2.509 MB / 0.5418 GB, free: 2.098 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.4882, allocations: 8.031 kB / 0.5418 GB, free: 2.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002111/0.4903, allocations: 376.3 kB / 0.5422 GB, free: 1.719 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004775/0.4951, allocations: 1.799 MB / 0.5439 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.4953, allocations: 76 kB / 0.544 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006793/0.496, allocations: 139.9 kB / 0.5441 GB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004586/0.5006, allocations: 2.36 MB / 0.5464 GB, free: 13.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005027/0.5056, allocations: 2.735 MB / 0.5491 GB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.092e-05/0.5057, allocations: 11.84 kB / 0.5491 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002105/0.5059, allocations: 4 kB / 0.5491 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/0.5061, allocations: 104.6 kB / 0.5492 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01608/0.5222, allocations: 9.356 MB / 0.5584 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.5239, allocations: 0.9556 MB / 0.5593 GB, free: 15.69 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.5254, allocations: 1.047 MB / 0.5603 GB, free: 14.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003527/0.5258, allocations: 219.2 kB / 0.5605 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.5259, allocations: 43.56 kB / 0.5606 GB, free: 14.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=121): time 3.597e-06/0.5259, allocations: 4 kB / 0.5606 GB, free: 14.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=143): time 0.01054/0.5364, allocations: 5.334 MB / 0.5658 GB, free: 8.953 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.5365, allocations: 68.72 kB / 0.5658 GB, free: 8.875 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/0.5386, allocations: 1.29 MB / 0.5671 GB, free: 7.578 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.5389, allocations: 29.64 kB / 0.5671 GB, free: 7.543 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005345/0.5394, allocations: 0.893 MB / 0.568 GB, free: 6.637 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004676/0.5399, allocations: 480.8 kB / 0.5685 GB, free: 6.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.178e-05/0.54, allocations: 0 / 0.5685 GB, free: 6.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5401, allocations: 369.8 kB / 0.5688 GB, free: 5.793 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.5413, allocations: 0.8083 MB / 0.5696 GB, free: 4.984 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.5426, allocations: 1.169 MB / 0.5707 GB, free: 3.656 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001416/0.5441, allocations: 0.9822 MB / 0.5717 GB, free: 2.676 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.5441, allocations: 4 kB / 0.5717 GB, free: 2.672 MB / 442.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004406/0.5485, allocations: 2.628 MB / 0.5743 GB, free: 24 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.5485, allocations: 8.031 kB / 0.5743 GB, free: 16 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.5486, allocations: 12 kB / 0.5743 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1624/0.7109, allocations: 0.5794 MB / 0.5749 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/0.7126, allocations: 362.6 kB / 0.5752 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005708/0.7183, allocations: 5.793 MB / 0.5809 GB, free: 73.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.7198, allocations: 70.25 kB / 0.5809 GB, free: 73.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.7199, allocations: 66.48 kB / 0.581 GB, free: 73.11 MB / 442.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 (174): * Single equations (assignments): 171 * 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.0002735/0.7202, allocations: 140.4 kB / 0.5811 GB, free: 73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.7204, allocations: 176 kB / 0.5813 GB, free: 73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00366/0.7241, allocations: 2.444 MB / 0.5837 GB, free: 72.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.7241, allocations: 14.22 kB / 0.5837 GB, free: 72.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.7241, allocations: 11.78 kB / 0.5837 GB, free: 72.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.7242, allocations: 7.5 kB / 0.5837 GB, free: 72.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007441/0.7316, allocations: 4.895 MB / 0.5885 GB, free: 72.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.7316, allocations: 0 / 0.5885 GB, free: 72.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.7327, allocations: 239.2 kB / 0.5887 GB, free: 72.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001598/0.7343, allocations: 0.625 MB / 0.5893 GB, free: 72.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.7344, allocations: 19.64 kB / 0.5893 GB, free: 72.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006966/0.7414, allocations: 7.39 MB / 0.5966 GB, free: 68.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.7414, allocations: 6.656 kB / 0.5966 GB, free: 68.88 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004983/0.7464, allocations: 3.858 MB / 0.6003 GB, free: 68.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009367/0.7474, allocations: 438.2 kB / 0.6008 GB, free: 68.13 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.7477, allocations: 14.33 kB / 0.6008 GB, free: 68.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009458/0.7486, allocations: 65.33 kB / 0.6008 GB, free: 68.13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.7488, allocations: 91.17 kB / 0.6009 GB, free: 68.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.455e-05/0.7489, allocations: 43.78 kB / 0.601 GB, free: 68.13 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001222/0.7502, allocations: 0.9753 MB / 0.6019 GB, free: 68.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001532/0.7517, allocations: 494.8 kB / 0.6024 GB, free: 68.02 MB / 442.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 (112): * Single equations (assignments): 109 * 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.0004743/0.7522, allocations: 297.2 kB / 0.6027 GB, free: 67.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00318/0.7554, allocations: 2.386 MB / 0.605 GB, free: 67.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.7554, allocations: 3.188 kB / 0.605 GB, free: 67.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.7575, allocations: 1.521 MB / 0.6065 GB, free: 67.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.7594, allocations: 343.4 kB / 0.6068 GB, free: 67.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007102/0.7665, allocations: 4.147 MB / 0.6109 GB, free: 66.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/0.7683, allocations: 2.176 MB / 0.613 GB, free: 65.61 MB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7683, allocations: 0 / 0.613 GB, free: 65.61 MB / 442.7 MB Notification: Performance of Templates: time 0.04314/0.8115, allocations: 25.45 MB / 0.6378 GB, free: 64.17 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches