Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 106.8 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 215.5 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5017,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL") translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5017,variableFilter="time|dFFREGSRL.dataOut.1.|dFFREGSRL.dataOut.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 51.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.228, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRL): time 0.002855/0.2309, allocations: 1.744 MB / 434.1 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.2331, allocations: 1.021 MB / 435.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.398e-05/0.2332, allocations: 3.938 kB / 435.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.2333, allocations: 35.7 kB / 435.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002809/0.2336, allocations: 175.4 kB / 435.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.2339, allocations: 151.8 kB / 435.5 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006294/0.2346, allocations: 0.5733 MB / 436 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.2347, allocations: 74.12 kB / 436.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.2361, allocations: 1.396 MB / 437.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.2364, allocations: 231.2 kB / 437.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.2365, allocations: 44 kB / 437.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.2367, allocations: 40 kB / 437.8 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.2369, allocations: 258.9 kB / 438.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000327/0.2372, allocations: 305.8 kB / 438.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.2386, allocations: 1.493 MB / 439.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2386, allocations: 0 / 439.9 MB, free: 15.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2386, allocations: 8 kB / 439.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.2386, allocations: 3.938 kB / 439.9 MB, free: 15.18 MB / 350.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.001853/0.2404, allocations: 1.634 MB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2405, allocations: 8.031 kB / 441.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.2407, allocations: 136.1 kB / 441.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007523/0.2414, allocations: 0.5199 MB / 442.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/0.2415, allocations: 20.38 kB / 442.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-05/0.2416, allocations: 32.36 kB / 442.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.2429, allocations: 0.9052 MB / 443.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.2429, allocations: 0 / 443.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.243, allocations: 16 kB / 443.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.243, allocations: 4 kB / 443.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000965/0.244, allocations: 0.7395 MB / 443.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.2456, allocations: 0.9371 MB / 444.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.2466, allocations: 0.7576 MB / 445.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009389/0.2475, allocations: 0.7442 MB / 446.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.2475, allocations: 4 kB / 446.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.2488, allocations: 1.039 MB / 447.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.184e-06/0.2488, allocations: 8 kB / 447.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003345/0.2521, allocations: 2.467 MB / 449.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002059/0.2523, allocations: 312.9 kB / 450.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002684/0.255, allocations: 1.833 MB / 452 MB, free: 2.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.153e-05/0.2551, allocations: 45.7 kB / 452 MB, free: 2.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.2554, allocations: 230.5 kB / 452.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.2555, allocations: 91.56 kB / 452.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003277/0.2558, allocations: 233.1 kB / 452.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.256, allocations: 378.7 kB / 452.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000911/0.257, allocations: 0.7239 MB / 453.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009479/0.2579, allocations: 0.7693 MB / 454.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.2593, allocations: 1.188 MB / 455.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2593, allocations: 0 / 455.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002206/0.2615, allocations: 1.667 MB / 457.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002166/0.2617, allocations: 273.5 kB / 457.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.2617, allocations: 0 / 457.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2617, allocations: 3.938 kB / 457.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.69e-05/0.2618, allocations: 4 kB / 457.6 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.2618, allocations: 4 kB / 457.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003201/0.2621, allocations: 51.8 kB / 457.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.2623, allocations: 131.9 kB / 457.7 MB, free: 12.21 MB / 366.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.001157/0.2634, allocations: 0.9635 MB / 458.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.2636, allocations: 139.1 kB / 458.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003971/0.264, allocations: 251.6 kB / 459.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.264, allocations: 0 / 459.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.264, allocations: 4 kB / 459.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/0.2654, allocations: 0.6841 MB / 459.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002/0.2656, allocations: 67.97 kB / 459.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.2659, allocations: 31.97 kB / 459.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005584/0.2665, allocations: 327.8 kB / 460.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002708/0.2692, allocations: 2.299 MB / 462.5 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002626/0.2718, allocations: 2.045 MB / 464.5 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001037/0.2729, allocations: 0.7927 MB / 465.3 MB, free: 4.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002012/0.2749, allocations: 1.325 MB / 466.6 MB, free: 2.852 MB / 366.1 MB Notification: Performance of Backend: time 2.71e-07/0.2749, allocations: 0 / 466.6 MB, free: 2.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001955/0.2768, allocations: 1.415 MB / 468.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of SimCode: time 0.004346/0.2812, allocations: 3.31 MB / 471.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of Templates: time 0.02338/0.3046, allocations: 16.95 MB / 488.3 MB, free: 12.67 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/DFFREGSRL/DFFREGSRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.DFFREGSRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.396671303999028]