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.001045/0.001045, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001237/0.001237, allocations: 165.9 kB / 24.99 MB, free: 8.336 MB / 18.57 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 0.9784/0.9784, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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 1.643e-06/1.643e-06, allocations: 0 / 273.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.735e-05/2.9e-05, allocations: 6.25 kB / 273.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.005734/0.005763, allocations: 2.058 MB / 275.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005436/0.0112, allocations: 1.111 MB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.01131, allocations: 3.938 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.01148, allocations: 51.56 kB / 276.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.01159, allocations: 47.59 kB / 276.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004766/0.01206, allocations: 187.7 kB / 276.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004302/0.01249, allocations: 467.5 kB / 277 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.0127, allocations: 110.1 kB / 277.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008219/0.01352, allocations: 0.9203 MB / 278 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.01378, allocations: 235.3 kB / 278.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.561e-05/0.01386, allocations: 40 kB / 278.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003091/0.01695, allocations: 44 kB / 278.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.01714, allocations: 159.4 kB / 278.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.0173, allocations: 143.5 kB / 278.6 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006069/0.01791, allocations: 0.7202 MB / 279.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.01791, allocations: 0 / 279.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.01791, allocations: 0 / 279.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.01792, allocations: 0 / 279.3 MB, free: 11.56 MB / 266.7 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.001015/0.01893, allocations: 0.92 MB / 280.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.01897, allocations: 8.031 kB / 280.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.01914, allocations: 76.66 kB / 280.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.01949, allocations: 295.4 kB / 280.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.01953, allocations: 29.03 kB / 280.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.229e-05/0.0196, allocations: 36.38 kB / 280.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003729/0.02333, allocations: 442.5 kB / 281.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.02334, allocations: 192 / 281.1 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-05/0.02341, allocations: 12.38 kB / 281.1 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.02342, allocations: 11.94 kB / 281.1 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005224/0.02394, allocations: 275.2 kB / 281.4 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.02555, allocations: 0.9607 MB / 282.4 MB, free: 8.363 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003726/0.02928, allocations: 363.5 kB / 282.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.0295, allocations: 171.6 kB / 282.9 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.02954, allocations: 8.281 kB / 282.9 MB, free: 7.793 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003977/0.02994, allocations: 344.8 kB / 283.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.994e-06/0.02994, allocations: 0 / 283.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0009864/0.03092, allocations: 0.6837 MB / 283.9 MB, free: 6.703 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.03098, allocations: 110.8 kB / 284 MB, free: 6.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.03124, allocations: 336.2 kB / 284.3 MB, free: 6.227 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.405e-05/0.03129, allocations: 45.64 kB / 284.4 MB, free: 6.176 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.03142, allocations: 231.7 kB / 284.6 MB, free: 5.945 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.693e-05/0.03152, allocations: 83.42 kB / 284.7 MB, free: 5.863 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003249/0.03476, allocations: 195.7 kB / 284.9 MB, free: 5.664 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.03493, allocations: 0.5157 MB / 285.4 MB, free: 5.137 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.03519, allocations: 164.3 kB / 285.6 MB, free: 4.961 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.03546, allocations: 238.7 kB / 285.8 MB, free: 4.695 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/0.03596, allocations: 404 kB / 286.2 MB, free: 4.258 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.03596, allocations: 7.938 kB / 286.2 MB, free: 4.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008028/0.03677, allocations: 0.5859 MB / 286.8 MB, free: 3.633 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/0.03681, allocations: 63.41 kB / 286.9 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.03682, allocations: 0 / 286.9 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.03683, allocations: 4 kB / 286.9 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.03695, allocations: 67.89 kB / 286.9 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.03695, allocations: 4.031 kB / 286.9 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.0371, allocations: 27.89 kB / 287 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002329/0.03733, allocations: 287.7 kB / 287.2 MB, free: 3.176 MB / 266.7 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.0002251/0.03756, allocations: 271.8 kB / 287.5 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.03766, allocations: 43.81 kB / 287.5 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003067/0.04072, allocations: 42.95 kB / 287.6 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.04073, allocations: 4 kB / 287.6 MB, free: 2.801 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.04073, allocations: 0 / 287.6 MB, free: 2.801 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.04074, allocations: 0 / 287.6 MB, free: 2.801 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004024/0.04114, allocations: 336.3 kB / 287.9 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.04114, allocations: 3.938 kB / 287.9 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-05/0.04124, allocations: 55.91 kB / 288 MB, free: 2.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.04124, allocations: 4 kB / 288 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-05/0.04131, allocations: 47.97 kB / 288 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.04131, allocations: 4 kB / 288 MB, free: 2.324 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.04131, allocations: 7.938 kB / 288 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008491/0.04216, allocations: 0.5728 MB / 288.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.04237, allocations: 127.6 kB / 288.7 MB, free: 1.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.189e-05/0.04246, allocations: 16 kB / 288.8 MB, free: 1.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.04261, allocations: 20 kB / 288.8 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.04285, allocations: 99.88 kB / 288.9 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002456/0.04309, allocations: 283.7 kB / 289.1 MB, free: 1.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001568/0.04325, allocations: 205.1 kB / 289.3 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.04325, allocations: 0 / 289.3 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003394/0.04664, allocations: 103.8 kB / 289.4 MB, free: 0.8594 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,K.y,J.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001769/0.04682, allocations: 137.9 kB / 289.6 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007826/0.0476, allocations: 0.5423 MB / 290.1 MB, free: 124 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.04761, allocations: 0 / 290.1 MB, free: 124 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004306/0.04804, allocations: 369.5 kB / 290.5 MB, free: 15.72 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.04914, allocations: 382 kB / 290.9 MB, free: 15.37 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.0503, allocations: 0.6911 MB / 291.5 MB, free: 14.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.624e-05/0.05039, allocations: 101.1 kB / 291.6 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001439/0.05183, allocations: 0.7393 MB / 292.4 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007433/0.05257, allocations: 275.9 kB / 292.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of SimCode: time 8.51e-07/0.05257, allocations: 0 / 292.7 MB, free: 13.5 MB / 282.7 MB Notification: Performance of Templates: time 0.01326/0.06583, allocations: 11.48 MB / 304.1 MB, free: 1.992 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.054410739103332]