Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.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.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG") translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 109.2 kB / 17.74 MB, free: 5.332 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.001043/0.001043, allocations: 188.3 kB / 18.68 MB, free: 4.406 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.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 51.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2452, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREG): time 0.002655/0.2479, allocations: 1.752 MB / 403.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.2499, allocations: 0.9667 MB / 404.1 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.345e-05/0.25, allocations: 7.938 kB / 404.1 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.2501, allocations: 31.72 kB / 404.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.2503, allocations: 39.72 kB / 404.2 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.2505, allocations: 115.8 kB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004762/0.251, allocations: 455.2 kB / 404.8 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.2512, allocations: 109.1 kB / 404.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009154/0.2522, allocations: 1.033 MB / 405.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/0.2524, allocations: 183.3 kB / 406.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.936e-05/0.2525, allocations: 36 kB / 406.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.752e-05/0.2526, allocations: 36 kB / 406.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.2528, allocations: 167.3 kB / 406.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000312/0.2531, allocations: 314 kB / 406.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008415/0.2539, allocations: 1.068 MB / 407.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2539, allocations: 4 kB / 407.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.254, allocations: 0 / 407.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.254, allocations: 0 / 407.7 MB, free: 2.559 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.001372/0.2553, allocations: 1.283 MB / 409 MB, free: 1.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.2554, allocations: 12.02 kB / 409 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.2555, allocations: 91.91 kB / 409.1 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005469/0.2561, allocations: 455.9 kB / 409.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.2562, allocations: 16.38 kB / 409.5 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.562e-05/0.2562, allocations: 24.38 kB / 409.6 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008924/0.2571, allocations: 0.5102 MB / 410.1 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2571, allocations: 0 / 410.1 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.472e-05/0.2572, allocations: 12 kB / 410.1 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.892e-06/0.2572, allocations: 4 kB / 410.1 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005594/0.2578, allocations: 372 kB / 410.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.2591, allocations: 0.8481 MB / 411.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006936/0.2598, allocations: 0.5101 MB / 411.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006547/0.2605, allocations: 0.4967 MB / 412.3 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.2605, allocations: 4 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008654/0.2614, allocations: 0.6468 MB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 2.214e-06/0.2614, allocations: 0 / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.002218/0.2636, allocations: 1.531 MB / 414.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/0.2638, allocations: 287.2 kB / 414.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.2652, allocations: 1.168 MB / 415.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.842e-05/0.2653, allocations: 37.7 kB / 416 MB, free: 9.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.2654, allocations: 161.8 kB / 416.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.2655, allocations: 79.09 kB / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002826/0.2658, allocations: 205 kB / 416.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.266, allocations: 338.8 kB / 416.7 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005489/0.2665, allocations: 352.1 kB / 417.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005292/0.2671, allocations: 375 kB / 417.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.2681, allocations: 0.979 MB / 418.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2681, allocations: 0 / 418.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001481/0.2696, allocations: 1.129 MB / 419.6 MB, free: 6.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.2698, allocations: 251.8 kB / 419.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2698, allocations: 4.062 kB / 419.8 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.2698, allocations: 0 / 419.8 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.999e-05/0.2699, allocations: 4 kB / 419.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.2699, allocations: 3.938 kB / 419.8 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.2702, allocations: 31.97 kB / 419.8 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.2703, allocations: 124.2 kB / 420 MB, free: 5.699 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: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataIn[1],dFFREG.dFFR.clock,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,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 (19): * Single equations (assignments): 12 * 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.0008064/0.2711, allocations: 0.764 MB / 420.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.2713, allocations: 94.97 kB / 420.8 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002165/0.2715, allocations: 147.7 kB / 421 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.2715, allocations: 3.984 kB / 421 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2715, allocations: 3.938 kB / 421 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.2725, allocations: 0.562 MB / 421.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.2727, allocations: 59.95 kB / 421.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.273, allocations: 31.97 kB / 421.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/0.2734, allocations: 215.8 kB / 421.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002244/0.2756, allocations: 1.73 MB / 423.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001993/0.2776, allocations: 1.498 MB / 425.1 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008631/0.2785, allocations: 0.6896 MB / 425.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001161/0.2797, allocations: 0.8616 MB / 426.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of Backend: time 8.41e-07/0.2797, allocations: 0 / 426.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.2813, allocations: 1.236 MB / 427.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 0.002944/0.2843, allocations: 2.505 MB / 430.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of Templates: time 0.01689/0.3012, allocations: 12.65 MB / 443 MB, free: 13.98 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/DFFREG/DFFREG.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.DFFREG.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches