Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.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.DLATREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRL.delay.inertialDelaySensitive.1..x|dLATREGSRL.delay.inertialDelaySensitive.1..y|dLATREGSRL.delay.inertialDelaySensitive.2..x|dLATREGSRL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRL.delay.inertialDelaySensitive.1..x|dLATREGSRL.delay.inertialDelaySensitive.1..y|dLATREGSRL.delay.inertialDelaySensitive.2..x|dLATREGSRL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009747/0.0009747, allocations: 195.3 kB / 18.06 MB, free: 3.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.5 MB / 245.3 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007223/0.0007223, allocations: 105.9 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002235/0.0002236, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1977, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09038/0.2882, allocations: 84.04 MB / 492.7 MB, free: 7.555 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.2884, allocations: 67.97 kB / 492.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2193/0.5077, allocations: 39.04 MB / 0.5193 GB, free: 91.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5078, allocations: 0 / 0.5193 GB, free: 91.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.542e-05/0.5078, allocations: 13.88 kB / 0.5194 GB, free: 91.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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001288/0.5091, allocations: 1.506 MB / 0.5208 GB, free: 90.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.5092, allocations: 7.156 kB / 0.5208 GB, free: 90.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.5093, allocations: 139.3 kB / 0.521 GB, free: 90.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.5098, allocations: 0.5631 MB / 0.5215 GB, free: 90.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.008e-05/0.5099, allocations: 22.5 kB / 0.5215 GB, free: 90 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.911e-05/0.5099, allocations: 37.17 kB / 0.5216 GB, free: 90 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000793/0.5107, allocations: 0.6226 MB / 0.5222 GB, free: 89.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.5108, allocations: 192 / 0.5222 GB, free: 89.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.548e-05/0.5108, allocations: 23.88 kB / 0.5222 GB, free: 89.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.5108, allocations: 4 kB / 0.5222 GB, free: 89.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005478/0.5114, allocations: 467.7 kB / 0.5227 GB, free: 89.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.5128, allocations: 1.174 MB / 0.5238 GB, free: 87.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006203/0.5134, allocations: 0.6897 MB / 0.5245 GB, free: 87.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005884/0.514, allocations: 0.6916 MB / 0.5251 GB, free: 86.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.514, allocations: 4 kB / 0.5252 GB, free: 86.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006991/0.5147, allocations: 0.7406 MB / 0.5259 GB, free: 85.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 1.883e-06/0.5148, allocations: 0 / 0.5259 GB, free: 85.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.00204/0.5168, allocations: 1.876 MB / 0.5277 GB, free: 83.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.5169, allocations: 332.8 kB / 0.528 GB, free: 83.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/0.5188, allocations: 1.85 MB / 0.5298 GB, free: 81.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.247e-05/0.5189, allocations: 49.69 kB / 0.5299 GB, free: 81.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.5191, allocations: 242.5 kB / 0.5301 GB, free: 81.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.306e-05/0.5192, allocations: 77.47 kB / 0.5302 GB, free: 81.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.92e-05/0.5192, allocations: 12 kB / 0.5302 GB, free: 81.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.825e-05/0.5193, allocations: 382.7 kB / 0.5306 GB, free: 80.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/0.5199, allocations: 447.5 kB / 0.531 GB, free: 80.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005159/0.5204, allocations: 482.2 kB / 0.5314 GB, free: 79.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008985/0.5213, allocations: 1.167 MB / 0.5326 GB, free: 78.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.5213, allocations: 0 / 0.5326 GB, free: 78.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001386/0.5227, allocations: 1.36 MB / 0.5339 GB, free: 77.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.5228, allocations: 293.5 kB / 0.5342 GB, free: 76.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.5229, allocations: 3.844 kB / 0.5342 GB, free: 76.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.5229, allocations: 3.938 kB / 0.5342 GB, free: 76.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.166e-05/0.5229, allocations: 4 kB / 0.5342 GB, free: 76.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.5229, allocations: 64 / 0.5342 GB, free: 76.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.5232, allocations: 47.88 kB / 0.5343 GB, free: 76.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.5234, allocations: 128.2 kB / 0.5344 GB, free: 76.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.0009292/0.5243, allocations: 0.9944 MB / 0.5353 GB, free: 75.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.5244, allocations: 130.5 kB / 0.5355 GB, free: 75.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003275/0.5248, allocations: 255.8 kB / 0.5357 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.5248, allocations: 4 kB / 0.5357 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.5248, allocations: 4 kB / 0.5357 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.5248, allocations: 0 / 0.5357 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002332/0.5271, allocations: 2.431 MB / 0.5381 GB, free: 72.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5271, allocations: 3.938 kB / 0.5381 GB, free: 72.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.095e-05/0.5272, allocations: 0 / 0.5381 GB, free: 72.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.5272, allocations: 4 kB / 0.5381 GB, free: 72.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.375e-05/0.5272, allocations: 35.97 kB / 0.5381 GB, free: 72.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5273, allocations: 0 / 0.5381 GB, free: 72.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5273, allocations: 4 kB / 0.5381 GB, free: 72.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.5289, allocations: 1.645 MB / 0.5397 GB, free: 71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008293/0.5297, allocations: 0.6784 MB / 0.5404 GB, free: 70.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.5299, allocations: 59.95 kB / 0.5405 GB, free: 70.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.5302, allocations: 43.75 kB / 0.5405 GB, free: 70.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004594/0.5306, allocations: 379.6 kB / 0.5409 GB, free: 69.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.5308, allocations: 133.7 kB / 0.541 GB, free: 69.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00146/0.5322, allocations: 1.349 MB / 0.5423 GB, free: 68.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5323, allocations: 4 kB / 0.5423 GB, free: 68.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004509/0.5327, allocations: 148 kB / 0.5425 GB, free: 68.21 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.0001913/0.5329, allocations: 181.5 kB / 0.5426 GB, free: 68.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.5345, allocations: 1.916 MB / 0.5445 GB, free: 66.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5345, allocations: 4.125 kB / 0.5445 GB, free: 66.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009232/0.5354, allocations: 1.435 MB / 0.5459 GB, free: 64.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.5365, allocations: 311.8 kB / 0.5462 GB, free: 64.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.54, allocations: 3.245 MB / 0.5494 GB, free: 60.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007183/0.5407, allocations: 1.196 MB / 0.5505 GB, free: 59.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.887e-05/0.5408, allocations: 19.44 kB / 0.5506 GB, free: 59.65 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5408, allocations: 0 / 0.5506 GB, free: 59.65 MB / 378.7 MB Notification: Performance of Templates: time 0.0101/0.5509, allocations: 10.32 MB / 0.5606 GB, free: 49.33 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGSRL/DLATREGSRL.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches