Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.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.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREG.delay.inertialDelaySensitive.1..x|dLATREG.delay.inertialDelaySensitive.1..y|dLATREG.delay.inertialDelaySensitive.2..x|dLATREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG") translateModel(Modelica.Electrical.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREG.delay.inertialDelaySensitive.1..x|dLATREG.delay.inertialDelaySensitive.1..y|dLATREG.delay.inertialDelaySensitive.2..x|dLATREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG") [: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.001699/0.001699, allocations: 199.7 kB / 8.538 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008276/0.0008276, allocations: 92.5 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.267e-06/9.287e-06, allocations: 4 kB / 343.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 51.47 MB / 394.6 MB, free: 5.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2165/0.322, allocations: 82.94 MB / 477.5 MB, free: 9.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001529/0.3221, allocations: 70.94 kB / 477.6 MB, free: 9.695 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06188/0.384, allocations: 26.46 MB / 0.4923 GB, free: 4.957 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.847e-05/0.3841, allocations: 8 kB / 0.4923 GB, free: 4.949 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00127/0.3854, allocations: 1.01 MB / 0.4933 GB, free: 3.926 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.3854, allocations: 8.031 kB / 0.4933 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.3856, allocations: 86.97 kB / 0.4934 GB, free: 3.832 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008379/0.3865, allocations: 421.8 kB / 0.4938 GB, free: 3.414 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.569e-05/0.3865, allocations: 19.48 kB / 0.4938 GB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.3866, allocations: 20 kB / 0.4938 GB, free: 3.379 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007325/0.3874, allocations: 354.2 kB / 0.4941 GB, free: 3.133 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.3884, allocations: 490 kB / 0.4946 GB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3885, allocations: 7.844 kB / 0.4946 GB, free: 2.754 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.295e-05/0.3885, allocations: 14.39 kB / 0.4946 GB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.3886, allocations: 7.938 kB / 0.4946 GB, free: 2.734 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.3907, allocations: 0.8975 MB / 0.4955 GB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008471/0.3915, allocations: 0.4966 MB / 0.496 GB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000802/0.3923, allocations: 488.9 kB / 0.4965 GB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.3924, allocations: 7.906 kB / 0.4965 GB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001071/0.3935, allocations: 0.5916 MB / 0.497 GB, free: 436 kB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 2.014e-06/0.3935, allocations: 0 / 0.497 GB, free: 436 kB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001696/0.3952, allocations: 0.7376 MB / 0.4978 GB, free: 15.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002345/0.3954, allocations: 291.2 kB / 0.498 GB, free: 15.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001989/0.3974, allocations: 0.9878 MB / 0.499 GB, free: 14.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.732e-05/0.3975, allocations: 45.69 kB / 0.499 GB, free: 14.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.001e-05/0.3976, allocations: 110 kB / 0.4991 GB, free: 14.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.3978, allocations: 83.95 kB / 0.4992 GB, free: 14.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.775e-05/0.3979, allocations: 11.94 kB / 0.4992 GB, free: 14.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.398, allocations: 338.8 kB / 0.4996 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007151/0.3988, allocations: 339.8 kB / 0.4999 GB, free: 13.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007107/0.3995, allocations: 347.8 kB / 0.5002 GB, free: 13.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.4, allocations: 239.8 kB / 0.5004 GB, free: 12.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4, allocations: 0 / 0.5004 GB, free: 12.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001601/0.4016, allocations: 0.7171 MB / 0.5011 GB, free: 12.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.4017, allocations: 8.547 kB / 0.5012 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.4017, allocations: 4 kB / 0.5012 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.4017, allocations: 0 / 0.5012 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.995e-05/0.4017, allocations: 4 kB / 0.5012 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.86e-06/0.4018, allocations: 0 / 0.5012 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004697/0.4022, allocations: 35.88 kB / 0.5012 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002137/0.4025, allocations: 118.4 kB / 0.5013 GB, free: 11.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005001/0.403, allocations: 413.9 kB / 0.5017 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.4032, allocations: 95.05 kB / 0.5018 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003659/0.4035, allocations: 143.5 kB / 0.5019 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4036, allocations: 0 / 0.5019 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4036, allocations: 0 / 0.5019 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4036, allocations: 3.984 kB / 0.5019 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002787/0.4064, allocations: 1.451 MB / 0.5034 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4064, allocations: 4 kB / 0.5034 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.408e-05/0.4064, allocations: 7.938 kB / 0.5034 GB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.4064, allocations: 3.906 kB / 0.5034 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.4066, allocations: 39.91 kB / 0.5034 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.4066, allocations: 4 kB / 0.5034 GB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4066, allocations: 0 / 0.5034 GB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001908/0.4085, allocations: 0.9278 MB / 0.5043 GB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.4099, allocations: 0.566 MB / 0.5049 GB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/0.4102, allocations: 55.97 kB / 0.5049 GB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005301/0.4108, allocations: 43.88 kB / 0.505 GB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005578/0.4113, allocations: 235.8 kB / 0.5052 GB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/0.4116, allocations: 131.9 kB / 0.5053 GB, free: 7.719 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001542/0.4131, allocations: 0.8187 MB / 0.5061 GB, free: 6.906 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007159/0.4139, allocations: 104 kB / 0.5062 GB, free: 6.805 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003292/0.4142, allocations: 192.4 kB / 0.5064 GB, free: 6.609 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.4161, allocations: 1.074 MB / 0.5074 GB, free: 5.492 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4161, allocations: 0 / 0.5074 GB, free: 5.492 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.4175, allocations: 0.9527 MB / 0.5084 GB, free: 4.496 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/0.4192, allocations: 246.4 kB / 0.5086 GB, free: 4.254 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/0.4233, allocations: 1.72 MB / 0.5103 GB, free: 2.512 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/0.4245, allocations: 1.049 MB / 0.5113 GB, free: 1.438 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4245, allocations: 0 / 0.5113 GB, free: 1.438 MB / 378.7 MB Notification: Performance of Templates: time 0.02433/0.4488, allocations: 12.15 MB / 0.5232 GB, free: 5.117 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREG/DLATREG.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.DLATREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches