Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.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.001822/0.001822, allocations: 110.4 kB / 21.19 MB, free: 0.6641 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.002161/0.002161, allocations: 209.7 kB / 24.49 MB, free: 3.965 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 47.92 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.227, allocations: 53.36 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003453/0.2304, allocations: 1.989 MB / 434.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.233, allocations: 1.107 MB / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.2331, allocations: 7.938 kB / 435.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.2333, allocations: 47.58 kB / 435.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.2335, allocations: 47.58 kB / 435.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005574/0.2341, allocations: 179.8 kB / 435.7 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006057/0.2347, allocations: 463.6 kB / 436.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.2349, allocations: 121.3 kB / 436.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.2359, allocations: 0.8421 MB / 437.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004142/0.2363, allocations: 267 kB / 437.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.2365, allocations: 44 kB / 437.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.2366, allocations: 40 kB / 437.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.2368, allocations: 155.4 kB / 437.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.2371, allocations: 179 kB / 437.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009157/0.238, allocations: 0.929 MB / 438.7 MB, free: 348 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.238, allocations: 0 / 438.7 MB, free: 348 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.238, allocations: 4 kB / 438.7 MB, free: 344 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.238, allocations: 0 / 438.7 MB, free: 344 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001414/0.2394, allocations: 0.8028 MB / 439.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2394, allocations: 8.031 kB / 439.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.2396, allocations: 48.66 kB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/0.2401, allocations: 289.3 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.738e-05/0.2402, allocations: 32.97 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2403, allocations: 32.38 kB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009992/0.2413, allocations: 0.5327 MB / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.2413, allocations: 0 / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.071e-05/0.2414, allocations: 15.98 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.2414, allocations: 8 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008482/0.2422, allocations: 437.8 kB / 440.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.2442, allocations: 0.9458 MB / 441.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.2454, allocations: 475.8 kB / 442.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004027/0.2458, allocations: 216.7 kB / 442.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.683e-05/0.2458, allocations: 8.281 kB / 442.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006843/0.2465, allocations: 390.7 kB / 442.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.993e-06/0.2465, allocations: 0 / 442.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.00163/0.2481, allocations: 0.8512 MB / 443.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/0.2482, allocations: 114.8 kB / 443.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.2486, allocations: 301.7 kB / 444.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.71e-05/0.2487, allocations: 41.7 kB / 444.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.2488, allocations: 188.9 kB / 444.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.2489, allocations: 83.42 kB / 444.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.2492, allocations: 182 kB / 444.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.2494, allocations: 346.7 kB / 445 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/0.2498, allocations: 232.2 kB / 445.2 MB, free: 9.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004911/0.2503, allocations: 296 kB / 445.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009222/0.2512, allocations: 0.5184 MB / 446 MB, free: 8.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.2512, allocations: 4 kB / 446 MB, free: 8.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001263/0.2525, allocations: 0.6978 MB / 446.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/0.2526, allocations: 63.41 kB / 446.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2526, allocations: 4 kB / 446.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.2526, allocations: 4.031 kB / 446.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.2528, allocations: 63.89 kB / 446.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.2528, allocations: 7.938 kB / 446.9 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.253, allocations: 27.89 kB / 446.9 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002913/0.2533, allocations: 283.7 kB / 447.2 MB, free: 7.465 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0003686/0.2536, allocations: 285.1 kB / 447.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9e-05/0.2537, allocations: 39.8 kB / 447.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.957e-05/0.2538, allocations: 34.97 kB / 447.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2538, allocations: 3.984 kB / 447.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2538, allocations: 0 / 447.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003399/0.2541, allocations: 115.8 kB / 447.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.2542, allocations: 16 kB / 447.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.2544, allocations: 19.92 kB / 447.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/0.2547, allocations: 83.91 kB / 447.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001379/0.256, allocations: 0.8573 MB / 448.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001235/0.2573, allocations: 0.8031 MB / 449.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004341/0.2577, allocations: 247.3 kB / 449.7 MB, free: 4.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.2579, allocations: 201.2 kB / 449.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of Backend: time 4.41e-07/0.2579, allocations: 4 kB / 449.9 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.259, allocations: 0.5123 MB / 450.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of SimCode: time 0.001933/0.2609, allocations: 1.335 MB / 451.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of Templates: time 0.01997/0.2809, allocations: 14.27 MB / 466 MB, free: 4.074 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.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.423822401004145]