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") [: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.0009974/0.0009975, allocations: 184.8 kB / 8.134 MB, free: 2.223 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.173/1.173, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009791/0.0009791, allocations: 95.25 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.901e-06/5.942e-06, allocations: 0 / 336.5 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1808, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.2906, allocations: 107 MB / 493.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.2909, allocations: 87.94 kB / 493.9 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2478/0.5387, allocations: 49.65 MB / 0.5309 GB, free: 78.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001829/0.5389, allocations: 63.94 kB / 0.5309 GB, free: 78.84 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.005369/0.5443, allocations: 2.509 MB / 0.5334 GB, free: 76.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.5443, allocations: 12.03 kB / 0.5334 GB, free: 76.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/0.5458, allocations: 328.3 kB / 0.5337 GB, free: 75.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003993/0.5498, allocations: 1.802 MB / 0.5355 GB, free: 74.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.5499, allocations: 80 kB / 0.5355 GB, free: 74.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005656/0.5505, allocations: 139.9 kB / 0.5357 GB, free: 73.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004196/0.5547, allocations: 2.364 MB / 0.538 GB, free: 71.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00456/0.5592, allocations: 2.735 MB / 0.5406 GB, free: 68.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-05/0.5593, allocations: 8 kB / 0.5407 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/0.5596, allocations: 4 kB / 0.5407 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.721e-05/0.5597, allocations: 104.6 kB / 0.5408 GB, free: 68.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01396/0.5736, allocations: 9.355 MB / 0.5499 GB, free: 58.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.5754, allocations: 0.9476 MB / 0.5508 GB, free: 58.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.5767, allocations: 1.051 MB / 0.5518 GB, free: 56.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003301/0.5771, allocations: 215.1 kB / 0.552 GB, free: 56.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.5771, allocations: 47.55 kB / 0.5521 GB, free: 56.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.657e-06/0.5772, allocations: 0 / 0.5521 GB, free: 56.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.009257/0.5864, allocations: 5.338 MB / 0.5573 GB, free: 51.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.5865, allocations: 72.72 kB / 0.5574 GB, free: 51.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001884/0.5884, allocations: 1.29 MB / 0.5586 GB, free: 49.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.295e-05/0.5885, allocations: 29.64 kB / 0.5587 GB, free: 49.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003356/0.5888, allocations: 0.8891 MB / 0.5595 GB, free: 48.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002693/0.5891, allocations: 469 kB / 0.56 GB, free: 48.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.362e-05/0.5892, allocations: 0 / 0.56 GB, free: 48.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.236e-05/0.5893, allocations: 381.8 kB / 0.5603 GB, free: 48.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009346/0.5902, allocations: 0.8004 MB / 0.5611 GB, free: 47.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.5913, allocations: 1.173 MB / 0.5623 GB, free: 46.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.5925, allocations: 0.9783 MB / 0.5632 GB, free: 45.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.5925, allocations: 0 / 0.5632 GB, free: 45.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003789/0.5963, allocations: 2.631 MB / 0.5658 GB, free: 42.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.5963, allocations: 4 kB / 0.5658 GB, free: 42.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.5963, allocations: 12.25 kB / 0.5658 GB, free: 42.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.5977, allocations: 0.5825 MB / 0.5664 GB, free: 41.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/0.5991, allocations: 363.5 kB / 0.5667 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005803/0.605, allocations: 5.794 MB / 0.5724 GB, free: 35.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.6063, allocations: 67.84 kB / 0.5724 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.6065, allocations: 67.98 kB / 0.5725 GB, free: 35.28 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 () * 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.0002635/0.6068, allocations: 144.5 kB / 0.5727 GB, free: 35.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003318/0.6071, allocations: 177.8 kB / 0.5728 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003721/0.6108, allocations: 2.451 MB / 0.5752 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.6108, allocations: 16 kB / 0.5752 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.6109, allocations: 4 kB / 0.5752 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.6109, allocations: 7.969 kB / 0.5752 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007477/0.6184, allocations: 4.893 MB / 0.58 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.6184, allocations: 4 kB / 0.58 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.6195, allocations: 231.7 kB / 0.5802 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001614/0.6211, allocations: 0.6313 MB / 0.5809 GB, free: 26.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.6212, allocations: 11.98 kB / 0.5809 GB, free: 26.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006911/0.6281, allocations: 7.402 MB / 0.5881 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.483e-06/0.6282, allocations: 4 kB / 0.5881 GB, free: 18.88 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005082/0.6333, allocations: 3.84 MB / 0.5919 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009574/0.6343, allocations: 442.8 kB / 0.5923 GB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004395/0.6347, allocations: 8.25 kB / 0.5923 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.6358, allocations: 67.92 kB / 0.5923 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.636, allocations: 105.2 kB / 0.5924 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.6362, allocations: 36 kB / 0.5925 GB, free: 14.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001362/0.6375, allocations: 0.9718 MB / 0.5934 GB, free: 13.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001663/0.6392, allocations: 495.9 kB / 0.5939 GB, free: 12.8 MB / 378.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.0005069/0.6397, allocations: 312.8 kB / 0.5942 GB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.6429, allocations: 2.387 MB / 0.5965 GB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.6429, allocations: 4.109 kB / 0.5965 GB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002252/0.6452, allocations: 1.52 MB / 0.598 GB, free: 8.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.6471, allocations: 334.7 kB / 0.5983 GB, free: 8.195 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007472/0.6545, allocations: 4.144 MB / 0.6024 GB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002039/0.6566, allocations: 2.172 MB / 0.6045 GB, free: 1.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6566, allocations: 0 / 0.6045 GB, free: 1.75 MB / 378.7 MB Notification: Performance of Templates: time 0.04574/0.7024, allocations: 25.4 MB / 0.6293 GB, free: 8.633 MB / 410.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