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.0009265/0.0009265, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.0008947/0.0008947, allocations: 166 kB / 25.61 MB, free: 8.871 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.9514/0.9514, allocations: 177.1 MB / 206 MB, free: 4.516 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.072e-06/1.072e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.177e-05/1.285e-05, allocations: 2.312 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002472/0.002485, allocations: 2.032 MB / 276.2 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.004316, allocations: 1.113 MB / 277.3 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.00442, allocations: 7.938 kB / 277.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.004572, allocations: 53.59 kB / 277.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.204e-05/0.004664, allocations: 47.58 kB / 277.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004353/0.005099, allocations: 179.7 kB / 277.6 MB, free: 1 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.005496, allocations: 471.5 kB / 278.1 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.005676, allocations: 114.5 kB / 278.2 MB, free: 436 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007344/0.006411, allocations: 0.9165 MB / 279.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002416/0.006652, allocations: 239.2 kB / 279.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.315e-05/0.006715, allocations: 45.19 kB / 279.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.893e-05/0.006784, allocations: 40 kB / 279.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.006919, allocations: 151.5 kB / 279.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.007055, allocations: 151.4 kB / 279.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005146/0.007569, allocations: 0.7131 MB / 280.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.007571, allocations: 0 / 280.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.007572, allocations: 4 kB / 280.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.007579, allocations: 0 / 280.4 MB, free: 14.18 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.0008416/0.00842, allocations: 0.9238 MB / 281.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.00845, allocations: 12.02 kB / 281.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.008576, allocations: 80.66 kB / 281.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005562/0.009132, allocations: 275.4 kB / 281.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.009165, allocations: 29.03 kB / 281.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-05/0.00922, allocations: 44.3 kB / 281.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.009665, allocations: 414.5 kB / 282.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.009676, allocations: 192 / 282.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.984e-05/0.009716, allocations: 16.38 kB / 282.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.009726, allocations: 11.94 kB / 282.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.009982, allocations: 239.9 kB / 282.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009733/0.01096, allocations: 0.8948 MB / 283.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.01141, allocations: 347.4 kB / 283.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.01155, allocations: 151.6 kB / 283.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.0116, allocations: 16.22 kB / 283.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.01187, allocations: 320.9 kB / 284.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.724e-06/0.01187, allocations: 0 / 284.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0006793/0.01255, allocations: 0.6523 MB / 284.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.01259, allocations: 106.8 kB / 284.9 MB, free: 9.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.01277, allocations: 336 kB / 285.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.01281, allocations: 41.7 kB / 285.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.942e-05/0.01291, allocations: 231.6 kB / 285.5 MB, free: 8.789 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.594e-05/0.01299, allocations: 79.45 kB / 285.6 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.01319, allocations: 211.6 kB / 285.8 MB, free: 8.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.01332, allocations: 0.5117 MB / 286.3 MB, free: 7.973 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.01346, allocations: 144.3 kB / 286.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.01363, allocations: 214.7 kB / 286.7 MB, free: 7.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/0.01395, allocations: 376.1 kB / 287 MB, free: 7.164 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.01396, allocations: 0 / 287 MB, free: 7.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005463/0.0145, allocations: 0.5623 MB / 287.6 MB, free: 6.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.01454, allocations: 59.39 kB / 287.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.01454, allocations: 4 kB / 287.7 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.01455, allocations: 4 kB / 287.7 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.084e-05/0.01464, allocations: 59.91 kB / 287.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.01465, allocations: 4 kB / 287.7 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.01476, allocations: 35.91 kB / 287.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.01493, allocations: 279.7 kB / 288 MB, free: 6.121 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.0001823/0.01511, allocations: 267.8 kB / 288.3 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.858e-05/0.01519, allocations: 55.75 kB / 288.3 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.01523, allocations: 30.95 kB / 288.4 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.01523, allocations: 4 kB / 288.4 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.01523, allocations: 8 kB / 288.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.01524, allocations: 0 / 288.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005345/0.01577, allocations: 292.9 kB / 288.7 MB, free: 5.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01577, allocations: 0 / 288.7 MB, free: 5.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.97e-05/0.01583, allocations: 51.91 kB / 288.7 MB, free: 5.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.01583, allocations: 0 / 288.7 MB, free: 5.379 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.423e-05/0.01588, allocations: 55.91 kB / 288.8 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.01588, allocations: 0 / 288.8 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01588, allocations: 0 / 288.8 MB, free: 5.324 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.01638, allocations: 0.5494 MB / 289.3 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.01652, allocations: 119.7 kB / 289.4 MB, free: 4.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/0.01658, allocations: 19.88 kB / 289.5 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.161e-05/0.01666, allocations: 19.98 kB / 289.5 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.01679, allocations: 87.91 kB / 289.6 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/0.01695, allocations: 287.7 kB / 289.8 MB, free: 4.203 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.93e-05/0.01705, allocations: 201.1 kB / 290 MB, free: 4.008 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01705, allocations: 0 / 290 MB, free: 4.008 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.0173, allocations: 103.8 kB / 290.1 MB, free: 3.906 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.0001136/0.01742, allocations: 138.5 kB / 290.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004372/0.01786, allocations: 0.511 MB / 290.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.01786, allocations: 0 / 290.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.01811, allocations: 345.5 kB / 291.1 MB, free: 2.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006744/0.01878, allocations: 372.3 kB / 291.5 MB, free: 2.484 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007019/0.01948, allocations: 0.6754 MB / 292.2 MB, free: 1.766 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.158e-05/0.01953, allocations: 101.1 kB / 292.3 MB, free: 1.645 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0009055/0.02044, allocations: 0.7237 MB / 293 MB, free: 0.918 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007266/0.02117, allocations: 457.5 kB / 293.4 MB, free: 480 kB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02117, allocations: 0 / 293.4 MB, free: 480 kB / 266.7 MB Notification: Performance of Templates: time 0.01236/0.03353, allocations: 12.26 MB / 305.7 MB, free: 4.184 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: 2.906813879031688]