Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL") translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 110.3 kB / 17.75 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001657/0.001658, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009784/0.0009785, allocations: 55.91 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2387, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DLATREGL): time 0.00253/0.2413, allocations: 1.741 MB / 403.1 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.2432, allocations: 0.9823 MB / 404.1 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.03e-05/0.2433, allocations: 4 kB / 404.1 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.2434, allocations: 23.8 kB / 404.2 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.2436, allocations: 43.64 kB / 404.2 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.2439, allocations: 103.8 kB / 404.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.2443, allocations: 455.3 kB / 404.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.2445, allocations: 117.1 kB / 404.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007262/0.2452, allocations: 0.7875 MB / 405.6 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.2455, allocations: 171.4 kB / 405.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.217e-05/0.2456, allocations: 36 kB / 405.8 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.887e-05/0.2457, allocations: 36 kB / 405.9 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.2458, allocations: 167.3 kB / 406 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000291/0.2461, allocations: 302.1 kB / 406.3 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007964/0.2469, allocations: 1.06 MB / 407.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2469, allocations: 0 / 407.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2469, allocations: 4 kB / 407.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.2469, allocations: 0 / 407.4 MB, free: 2.832 MB / 318.1 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.001246/0.2482, allocations: 1.27 MB / 408.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.2482, allocations: 12.03 kB / 408.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.2484, allocations: 87.91 kB / 408.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005284/0.2489, allocations: 443.9 kB / 409.2 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.2489, allocations: 20.38 kB / 409.2 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.501e-05/0.249, allocations: 24.38 kB / 409.3 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008379/0.2499, allocations: 0.5024 MB / 409.8 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.2499, allocations: 0 / 409.8 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/0.2499, allocations: 8 kB / 409.8 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2499, allocations: 0 / 409.8 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005646/0.2505, allocations: 375.7 kB / 410.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.2519, allocations: 0.9222 MB / 411 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006411/0.2525, allocations: 0.5025 MB / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006168/0.2532, allocations: 0.493 MB / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.2532, allocations: 0 / 412 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008705/0.2541, allocations: 0.6356 MB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.254e-06/0.2541, allocations: 0 / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002183/0.2563, allocations: 1.512 MB / 414.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000156/0.2564, allocations: 283.3 kB / 414.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001415/0.2579, allocations: 1.156 MB / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.434e-05/0.2579, allocations: 33.7 kB / 415.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.258, allocations: 149.9 kB / 415.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.842e-05/0.2582, allocations: 79.09 kB / 415.9 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.2584, allocations: 193.1 kB / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2585, allocations: 338.8 kB / 416.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.259, allocations: 343.8 kB / 416.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005064/0.2596, allocations: 370.2 kB / 417.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.2606, allocations: 0.9919 MB / 418.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2606, allocations: 0 / 418.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001445/0.2621, allocations: 1.12 MB / 419.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001665/0.2622, allocations: 247.9 kB / 419.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2622, allocations: 0 / 419.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.2623, allocations: 3.938 kB / 419.5 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.469e-05/0.2623, allocations: 4 kB / 419.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.2623, allocations: 3.984 kB / 419.5 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.2626, allocations: 35.77 kB / 419.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.2627, allocations: 128 kB / 419.6 MB, free: 6.031 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataIn[1],dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,data_1.y,reset.y,data_0.y,enable.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007514/0.2635, allocations: 0.7563 MB / 420.4 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.2636, allocations: 87.06 kB / 420.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.2638, allocations: 151.5 kB / 420.6 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.2638, allocations: 7.938 kB / 420.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2638, allocations: 0 / 420.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000795/0.2646, allocations: 0.5581 MB / 421.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.2648, allocations: 55.97 kB / 421.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.265, allocations: 31.97 kB / 421.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003428/0.2654, allocations: 211.8 kB / 421.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001908/0.2673, allocations: 1.715 MB / 423.2 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001825/0.2691, allocations: 1.471 MB / 424.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007903/0.27, allocations: 0.7068 MB / 425.4 MB, free: 16 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001162/0.2711, allocations: 0.8538 MB / 426.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of Backend: time 3.81e-07/0.2711, allocations: 4 kB / 426.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001542/0.2727, allocations: 1.239 MB / 427.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of SimCode: time 0.002984/0.2757, allocations: 2.489 MB / 429.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of Templates: time 0.01675/0.2924, allocations: 11.99 MB / 441.9 MB, free: 15.05 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DLATREGL/DLATREGL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DLATREGL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches