Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_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.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,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.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,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.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_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 4.0.0+maint.om/package.mo): time 0.0009554/0.0009555, allocations: 186.1 kB / 8.136 MB, free: 2.199 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.218/1.218, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0009035/0.0009037, allocations: 100.1 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.22e-06/5.25e-06, allocations: 0 / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1775, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.2917, allocations: 114.3 MB / 0.4895 GB, free: 4.434 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.292, allocations: 88.77 kB / 0.4896 GB, free: 4.348 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3162/0.6082, allocations: 85.25 MB / 0.5728 GB, free: 37.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001487/0.6084, allocations: 79.86 kB / 0.5729 GB, free: 37.11 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.004414/0.6128, allocations: 2.794 MB / 0.5756 GB, free: 34.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.6128, allocations: 12.03 kB / 0.5756 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.6141, allocations: 451.7 kB / 0.5761 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003072/0.6172, allocations: 1.973 MB / 0.578 GB, free: 31.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.464e-05/0.6173, allocations: 88 kB / 0.5781 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003103/0.6176, allocations: 163.9 kB / 0.5782 GB, free: 31.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003704/0.6213, allocations: 2.584 MB / 0.5808 GB, free: 28.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004137/0.6255, allocations: 3.051 MB / 0.5837 GB, free: 25.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.117e-05/0.6256, allocations: 7.938 kB / 0.5837 GB, free: 25.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.6258, allocations: 8 kB / 0.5837 GB, free: 25.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-05/0.6259, allocations: 117.2 kB / 0.5839 GB, free: 25.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01422/0.6401, allocations: 10.78 MB / 0.5944 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.6415, allocations: 1.031 MB / 0.5954 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.6428, allocations: 1.09 MB / 0.5965 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002917/0.6431, allocations: 223.5 kB / 0.5967 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.6431, allocations: 51.78 kB / 0.5967 GB, free: 12.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.297e-06/0.6431, allocations: 0 / 0.5967 GB, free: 12.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.00942/0.6526, allocations: 5.807 MB / 0.6024 GB, free: 6.188 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.174e-05/0.6526, allocations: 68.72 kB / 0.6025 GB, free: 6.105 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.6543, allocations: 1.477 MB / 0.6039 GB, free: 4.629 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.058e-05/0.6544, allocations: 29.64 kB / 0.6039 GB, free: 4.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003333/0.6548, allocations: 1.022 MB / 0.6049 GB, free: 3.555 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002825/0.655, allocations: 0.5235 MB / 0.6054 GB, free: 3.023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.935e-05/0.6551, allocations: 3.938 kB / 0.6054 GB, free: 3.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.593e-05/0.6552, allocations: 385.8 kB / 0.6058 GB, free: 2.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.6563, allocations: 0.8786 MB / 0.6067 GB, free: 1.758 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.6575, allocations: 1.321 MB / 0.608 GB, free: 252 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.659, allocations: 1.099 MB / 0.609 GB, free: 15.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.6591, allocations: 4 kB / 0.609 GB, free: 15.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004854/0.6639, allocations: 2.903 MB / 0.6119 GB, free: 12.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.664, allocations: 7.938 kB / 0.6119 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.883e-05/0.664, allocations: 16 kB / 0.6119 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/0.6656, allocations: 0.6157 MB / 0.6125 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.6674, allocations: 435.4 kB / 0.6129 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007253/0.6747, allocations: 5.151 MB / 0.6179 GB, free: 5.887 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.6763, allocations: 79.83 kB / 0.618 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.6765, allocations: 83.98 kB / 0.6181 GB, free: 5.727 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 195 * 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%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003022/0.6768, allocations: 144.5 kB / 0.6182 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003678/0.6772, allocations: 197.6 kB / 0.6184 GB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004663/0.6819, allocations: 2.64 MB / 0.621 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/0.6819, allocations: 16 kB / 0.621 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.6819, allocations: 11.84 kB / 0.621 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.6819, allocations: 11.97 kB / 0.621 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009653/0.6916, allocations: 5.353 MB / 0.6263 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.915e-05/0.6916, allocations: 4.125 kB / 0.6263 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.693, allocations: 292 kB / 0.6265 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001979/0.695, allocations: 0.6694 MB / 0.6272 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.6951, allocations: 19.98 kB / 0.6272 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00873/0.7038, allocations: 6.746 MB / 0.6338 GB, free: 5.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.7039, allocations: 11.94 kB / 0.6338 GB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006176/0.7101, allocations: 4.148 MB / 0.6379 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/0.7112, allocations: 486.5 kB / 0.6383 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003478/0.7115, allocations: 8 kB / 0.6383 GB, free: 500 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.7127, allocations: 79.91 kB / 0.6384 GB, free: 420 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/0.713, allocations: 101.1 kB / 0.6385 GB, free: 320 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.7131, allocations: 48.12 kB / 0.6386 GB, free: 272 kB / 410.7 MB Notification: Performance of sort global known variables: time 0.001778/0.7149, allocations: 1.101 MB / 0.6396 GB, free: 15.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002014/0.7169, allocations: 0.5585 MB / 0.6402 GB, free: 14.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 119 * 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%) 27,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006444/0.7176, allocations: 335.1 kB / 0.6405 GB, free: 14.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.7215, allocations: 2.57 MB / 0.643 GB, free: 11.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.7215, allocations: 1.25 kB / 0.643 GB, free: 11.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.724, allocations: 1.553 MB / 0.6445 GB, free: 10.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.7258, allocations: 332.1 kB / 0.6448 GB, free: 9.754 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008942/0.7348, allocations: 4.655 MB / 0.6494 GB, free: 5.008 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002508/0.7373, allocations: 2.322 MB / 0.6517 GB, free: 2.652 MB / 426.7 MB Notification: Performance of SimCode: time 8.32e-07/0.7373, allocations: 0 / 0.6517 GB, free: 2.652 MB / 426.7 MB Notification: Performance of Templates: time 0.1509/0.8882, allocations: 28.28 MB / 0.6793 GB, free: 128.7 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches