Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 108.4 kB / 18.4 MB, free: 4.68 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.001179/0.001179, allocations: 190.1 kB / 19.34 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 51.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.09021, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRL): time 0.003194/0.09344, allocations: 1.82 MB / 377.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.09574, allocations: 1.065 MB / 378.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.0959, allocations: 4 kB / 378.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.09608, allocations: 35.7 kB / 378.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.09637, allocations: 179.4 kB / 378.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003765/0.09675, allocations: 135.8 kB / 379.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006724/0.09744, allocations: 0.6124 MB / 379.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.09768, allocations: 114 kB / 379.8 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1798/0.2775, allocations: 1.365 MB / 381.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.2779, allocations: 216.8 kB / 381.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.2781, allocations: 42.62 kB / 381.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.2782, allocations: 42.62 kB / 381.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002946/0.2785, allocations: 255.9 kB / 381.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004468/0.279, allocations: 441.9 kB / 382.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.2808, allocations: 1.471 MB / 383.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.2808, allocations: 0 / 383.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.2809, allocations: 0.6094 kB / 383.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.897e-05/0.2809, allocations: 0 / 383.6 MB, free: 9.906 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.002303/0.2832, allocations: 1.687 MB / 385.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.2833, allocations: 9.781 kB / 385.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002081/0.2835, allocations: 131.8 kB / 385.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.2841, allocations: 0.5659 MB / 386 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.563e-05/0.2841, allocations: 26.38 kB / 386 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.826e-05/0.2842, allocations: 27.08 kB / 386 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.2855, allocations: 0.6187 MB / 386.7 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.2856, allocations: 8.781 kB / 386.7 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.586e-05/0.2856, allocations: 21.28 kB / 386.7 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2857, allocations: 2.344 kB / 386.7 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007983/0.2865, allocations: 463.1 kB / 387.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.289, allocations: 1.088 MB / 388.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008666/0.2898, allocations: 0.6877 MB / 388.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007797/0.2906, allocations: 0.6818 MB / 389.6 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.2906, allocations: 2.75 kB / 389.6 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.2917, allocations: 0.7568 MB / 390.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=36): time 4.819e-06/0.2918, allocations: 0 / 390.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.003001/0.2948, allocations: 1.872 MB / 392.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/0.2949, allocations: 332.7 kB / 392.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/0.2984, allocations: 1.826 MB / 394.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/0.2985, allocations: 49.23 kB / 394.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.2988, allocations: 231.2 kB / 394.7 MB, free: 4.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.2989, allocations: 94.88 kB / 394.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003614/0.2992, allocations: 231.4 kB / 395 MB, free: 4.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.2994, allocations: 375.9 kB / 395.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000702/0.3001, allocations: 449.8 kB / 395.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006782/0.3008, allocations: 479.8 kB / 396.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.3019, allocations: 1.161 MB / 397.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3019, allocations: 0 / 397.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001798/0.3037, allocations: 1.352 MB / 398.8 MB, free: 2.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.3039, allocations: 291.3 kB / 399 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.3039, allocations: 8 kB / 399 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.304, allocations: 2.375 kB / 399.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.448e-05/0.304, allocations: 4.531 kB / 399.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.304, allocations: 2.031 kB / 399.1 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.3045, allocations: 40.23 kB / 399.1 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.3047, allocations: 129.5 kB / 399.2 MB, free: 2.148 MB / 318.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.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.clock,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.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.001753/0.3064, allocations: 1.007 MB / 400.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002386/0.3067, allocations: 129.8 kB / 400.4 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006905/0.3074, allocations: 253 kB / 400.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3074, allocations: 0.8906 kB / 400.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3074, allocations: 0 / 400.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009937/0.3084, allocations: 0.678 MB / 401.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.3086, allocations: 61.97 kB / 401.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/0.3089, allocations: 34.2 kB / 401.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005782/0.3095, allocations: 324.2 kB / 401.7 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002532/0.312, allocations: 2.015 MB / 403.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002317/0.3144, allocations: 1.741 MB / 405.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001058/0.3154, allocations: 0.8883 MB / 406.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002492/0.3179, allocations: 1.324 MB / 407.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Backend: time 3.41e-07/0.3179, allocations: 7.875 kB / 407.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.3201, allocations: 1.541 MB / 409.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of SimCode: time 0.005423/0.3255, allocations: 3.309 MB / 412.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of Templates: time 0.02851/0.3541, allocations: 15.93 MB / 428.4 MB, free: 9.375 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches