Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001915/0.001915, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002276/0.002276, allocations: 157.8 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 177 MB / 204.1 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 325 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.28e-05/2.435e-05, allocations: 6.281 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003152/0.003176, allocations: 1.986 MB / 327 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.005921, allocations: 1.112 MB / 328.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.006053, allocations: 0 / 328.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.006266, allocations: 53.2 kB / 328.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.006403, allocations: 43.69 kB / 328.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006366/0.00704, allocations: 190.3 kB / 328.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006243/0.007664, allocations: 474.3 kB / 328.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.007915, allocations: 105.5 kB / 329 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.00916, allocations: 0.9178 MB / 329.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.00956, allocations: 243.3 kB / 330.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.009685, allocations: 42.12 kB / 330.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.009805, allocations: 42.66 kB / 330.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002668/0.01007, allocations: 153.7 kB / 330.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.01035, allocations: 146.1 kB / 330.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.01148, allocations: 0.9624 MB / 331.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.01149, allocations: 1.25 kB / 331.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.01149, allocations: 0 / 331.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.0115, allocations: 0 / 331.5 MB, free: 12.69 MB / 302.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.00139/0.01289, allocations: 0.8096 MB / 332.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.01293, allocations: 16.86 kB / 332.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.01307, allocations: 53.11 kB / 332.3 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004972/0.01357, allocations: 282.5 kB / 332.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.01361, allocations: 27.19 kB / 332.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.683e-05/0.0137, allocations: 33 kB / 332.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009978/0.0147, allocations: 0.5429 MB / 333.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.01471, allocations: 4.125 kB / 333.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.681e-05/0.0148, allocations: 13.25 kB / 333.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.01481, allocations: 12.25 kB / 333.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008471/0.01566, allocations: 447.2 kB / 333.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.01755, allocations: 0.9465 MB / 334.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.01874, allocations: 492.8 kB / 335.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.01916, allocations: 221.8 kB / 335.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.323e-05/0.01923, allocations: 3.531 kB / 335.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007429/0.01997, allocations: 409.5 kB / 335.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.395e-06/0.01997, allocations: 1.062 kB / 335.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001781/0.02175, allocations: 0.8531 MB / 336.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.02186, allocations: 114.8 kB / 336.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003821/0.02224, allocations: 305.7 kB / 337 MB, free: 8.828 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.234e-05/0.02232, allocations: 37.7 kB / 337 MB, free: 8.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.0225, allocations: 188.9 kB / 337.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.02263, allocations: 75.5 kB / 337.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003275/0.02296, allocations: 186.1 kB / 337.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.02314, allocations: 342.8 kB / 337.8 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/0.0236, allocations: 256.2 kB / 338 MB, free: 7.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004961/0.0241, allocations: 292.6 kB / 338.3 MB, free: 7.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009499/0.02505, allocations: 0.5255 MB / 338.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.02505, allocations: 3.938 kB / 338.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001334/0.02639, allocations: 0.7109 MB / 339.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.268e-05/0.02645, allocations: 59.41 kB / 339.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.02646, allocations: 0 / 339.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.41e-05/0.02649, allocations: 4 kB / 339.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.02667, allocations: 63.89 kB / 339.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.02668, allocations: 4 kB / 339.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.02692, allocations: 31.89 kB / 339.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003139/0.02723, allocations: 283.7 kB / 340 MB, free: 5.652 MB / 302.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.0004014/0.02763, allocations: 289.1 kB / 340.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.596e-05/0.02773, allocations: 43.8 kB / 340.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.226e-05/0.0278, allocations: 30.97 kB / 340.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.0278, allocations: 4 kB / 340.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.02782, allocations: 3.984 kB / 340.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.02782, allocations: 0 / 340.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.02835, allocations: 361 kB / 340.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.02836, allocations: 3.938 kB / 340.7 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.02848, allocations: 59.91 kB / 340.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.02848, allocations: 4 kB / 340.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.122e-05/0.02856, allocations: 51.91 kB / 340.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.02856, allocations: 0 / 340.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02857, allocations: 0 / 340.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.0298, allocations: 0.6684 MB / 341.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.03009, allocations: 127.6 kB / 341.6 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.0302, allocations: 16 kB / 341.7 MB, free: 3.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.03038, allocations: 23.98 kB / 341.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/0.03067, allocations: 95.88 kB / 341.8 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003157/0.03098, allocations: 287.7 kB / 342 MB, free: 3.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.03122, allocations: 201.2 kB / 342.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.03122, allocations: 0 / 342.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004603/0.03168, allocations: 99.84 kB / 342.3 MB, free: 3.219 MB / 302.1 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.0002555/0.03193, allocations: 141.8 kB / 342.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.03314, allocations: 0.6534 MB / 343.1 MB, free: 2.367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.03315, allocations: 0 / 343.1 MB, free: 2.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006263/0.03377, allocations: 414 kB / 343.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.03518, allocations: 341.4 kB / 343.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.03663, allocations: 0.7652 MB / 344.6 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.03686, allocations: 204.3 kB / 344.8 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001516/0.03838, allocations: 0.7471 MB / 345.6 MB, free: 15.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007709/0.03915, allocations: 275.9 kB / 345.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.03915, allocations: 4 kB / 345.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of Templates: time 0.01971/0.05886, allocations: 11.41 MB / 357.3 MB, free: 4.074 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.975060071796179]