Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.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.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 104.8 kB / 17.74 MB, free: 5.316 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.001958/0.001958, allocations: 194.9 kB / 18.67 MB, free: 4.395 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.442/1.442, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 43.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2417, allocations: 49.45 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRH): time 0.002646/0.2443, allocations: 1.801 MB / 403.2 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.2463, allocations: 1.029 MB / 404.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.544e-05/0.2464, allocations: 4 kB / 404.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.2466, allocations: 35.7 kB / 404.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.2469, allocations: 179.4 kB / 404.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.2472, allocations: 139.8 kB / 404.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005477/0.2477, allocations: 0.6123 MB / 405.2 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.2479, allocations: 122 kB / 405.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.249, allocations: 1.369 MB / 406.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002638/0.2493, allocations: 215.2 kB / 406.9 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.2494, allocations: 47.94 kB / 407 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.2496, allocations: 40 kB / 407 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.2498, allocations: 251 kB / 407.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003577/0.2501, allocations: 441 kB / 407.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.2512, allocations: 1.46 MB / 409.1 MB, free: 1.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2512, allocations: 0 / 409.1 MB, free: 1.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2512, allocations: 7.938 kB / 409.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.2512, allocations: 0 / 409.1 MB, free: 1.125 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001568/0.2528, allocations: 1.676 MB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2528, allocations: 8.031 kB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.253, allocations: 135.3 kB / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/0.2537, allocations: 0.5711 MB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.2537, allocations: 20.38 kB / 411.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.65e-05/0.2538, allocations: 32.36 kB / 411.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.2548, allocations: 0.6186 MB / 412.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2548, allocations: 0 / 412.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.297e-05/0.2549, allocations: 20 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.2549, allocations: 4 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.2556, allocations: 463.6 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.2571, allocations: 1.068 MB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008173/0.2579, allocations: 0.6936 MB / 414.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007848/0.2587, allocations: 0.688 MB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.2587, allocations: 4 kB / 415.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009107/0.2597, allocations: 0.7475 MB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 2.204e-06/0.2597, allocations: 0 / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.002537/0.2622, allocations: 1.872 MB / 417.7 MB, free: 8.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001649/0.2624, allocations: 329.1 kB / 418.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002247/0.2647, allocations: 1.825 MB / 419.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.02e-05/0.2647, allocations: 49.69 kB / 419.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.265, allocations: 234.5 kB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.2651, allocations: 94.92 kB / 420.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.2654, allocations: 232.7 kB / 420.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2656, allocations: 382.7 kB / 420.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006213/0.2662, allocations: 443.7 kB / 421.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006434/0.2668, allocations: 486.1 kB / 421.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.268, allocations: 1.169 MB / 422.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.268, allocations: 0 / 422.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001695/0.2697, allocations: 1.345 MB / 424.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001862/0.2699, allocations: 293.5 kB / 424.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.2699, allocations: 3.984 kB / 424.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.27, allocations: 4 kB / 424.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.732e-05/0.27, allocations: 4.062 kB / 424.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.27, allocations: 11.88 kB / 424.6 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.2703, allocations: 35.88 kB / 424.6 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/0.2705, allocations: 131.9 kB / 424.8 MB, free: 0.8398 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: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.clock,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,set.y,data_1.y,reset.y,data_0.y,clock.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 (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.001028/0.2715, allocations: 0.9877 MB / 425.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.2717, allocations: 134.4 kB / 425.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003399/0.272, allocations: 251.6 kB / 426.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2721, allocations: 3.984 kB / 426.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2721, allocations: 0 / 426.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.2731, allocations: 0.6823 MB / 426.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000187/0.2733, allocations: 63.95 kB / 426.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.2735, allocations: 35.97 kB / 426.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004987/0.2741, allocations: 315.8 kB / 427.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002292/0.2764, allocations: 2.009 MB / 429.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002043/0.2784, allocations: 1.731 MB / 431 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001/0.2794, allocations: 0.8903 MB / 431.8 MB, free: 9.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001759/0.2812, allocations: 1.321 MB / 433.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of Backend: time 3.11e-07/0.2812, allocations: 0 / 433.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.283, allocations: 1.54 MB / 434.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of SimCode: time 0.003742/0.2868, allocations: 3.32 MB / 438 MB, free: 3.008 MB / 350.1 MB Notification: Performance of Templates: time 0.02163/0.3084, allocations: 15.66 MB / 453.7 MB, free: 3.07 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREGSRH/DFFREGSRH.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREGSRH.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches