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.001018/0.001018, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001025/0.001025, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9268/0.9268, allocations: 177.1 MB / 205 MB, free: 5.641 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.934e-06/1.934e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.774e-05, allocations: 6.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002445/0.002462, allocations: 2.058 MB / 275 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.004281, allocations: 1.122 MB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.004393, allocations: 7.938 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.004564, allocations: 51.56 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.9e-05/0.004663, allocations: 43.59 kB / 276.3 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.005136, allocations: 179.7 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.00553, allocations: 475.5 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.005711, allocations: 118.1 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006477/0.006359, allocations: 0.9086 MB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.006594, allocations: 243.2 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.976e-05/0.006664, allocations: 44 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.348e-05/0.006727, allocations: 44 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.006854, allocations: 155.5 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.006982, allocations: 139.4 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004894/0.007472, allocations: 0.7202 MB / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.007474, allocations: 0 / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.007475, allocations: 0 / 279.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.007482, allocations: 0 / 279.3 MB, free: 11.26 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.0008581/0.008341, allocations: 0.9161 MB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.008374, allocations: 12.03 kB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004081/0.008782, allocations: 84.66 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.009066, allocations: 291.3 kB / 280.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.009096, allocations: 29.03 kB / 280.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.436e-05/0.00915, allocations: 32.38 kB / 280.6 MB, free: 9.824 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.009659, allocations: 446.5 kB / 281 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.009669, allocations: 192 / 281 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.155e-05/0.00971, allocations: 16.38 kB / 281.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.00972, allocations: 11.94 kB / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003171/0.01004, allocations: 271.2 kB / 281.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.01109, allocations: 0.9568 MB / 282.3 MB, free: 8.062 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/0.0116, allocations: 375.1 kB / 282.7 MB, free: 7.676 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.01176, allocations: 163.6 kB / 282.8 MB, free: 7.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.0118, allocations: 8.281 kB / 282.8 MB, free: 7.492 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/0.0121, allocations: 344.8 kB / 283.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.893e-06/0.0121, allocations: 0 / 283.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007407/0.01284, allocations: 0.6798 MB / 283.8 MB, free: 6.406 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.01289, allocations: 118.8 kB / 284 MB, free: 6.266 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.0131, allocations: 336.2 kB / 284.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.01314, allocations: 37.7 kB / 284.3 MB, free: 5.879 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.01324, allocations: 235.6 kB / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.565e-05/0.01332, allocations: 87.47 kB / 284.6 MB, free: 5.559 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.01349, allocations: 191.7 kB / 284.8 MB, free: 5.363 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.01361, allocations: 0.5118 MB / 285.3 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.01379, allocations: 172.3 kB / 285.5 MB, free: 4.656 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.01399, allocations: 230.8 kB / 285.7 MB, free: 4.398 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/0.01435, allocations: 415.9 kB / 286.1 MB, free: 3.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.01436, allocations: 7.938 kB / 286.2 MB, free: 3.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00058/0.01494, allocations: 0.582 MB / 286.7 MB, free: 3.328 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.01497, allocations: 67.42 kB / 286.8 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.01498, allocations: 4 kB / 286.8 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.01499, allocations: 0 / 286.8 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.01509, allocations: 63.91 kB / 286.9 MB, free: 3.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.0151, allocations: 4 kB / 286.9 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.01521, allocations: 27.88 kB / 286.9 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.01537, allocations: 287.7 kB / 287.2 MB, free: 2.871 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.0004311/0.0158, allocations: 275.8 kB / 287.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.161e-05/0.01587, allocations: 43.81 kB / 287.5 MB, free: 2.535 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.01592, allocations: 38.95 kB / 287.5 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.01592, allocations: 4 kB / 287.5 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.01592, allocations: 0 / 287.5 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.01593, allocations: 0 / 287.5 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002848/0.01621, allocations: 336.3 kB / 287.9 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.01622, allocations: 7.922 kB / 287.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.786e-05/0.01627, allocations: 55.91 kB / 287.9 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.01627, allocations: 4 kB / 287.9 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.01632, allocations: 43.98 kB / 288 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.01632, allocations: 7.984 kB / 288 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.01632, allocations: 0 / 288 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.01686, allocations: 0.5767 MB / 288.6 MB, free: 1.391 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.017, allocations: 119.6 kB / 288.7 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.129e-05/0.01707, allocations: 20 kB / 288.7 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.359e-05/0.01715, allocations: 19.98 kB / 288.7 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.01731, allocations: 103.9 kB / 288.8 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001668/0.01748, allocations: 279.7 kB / 289.1 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001175/0.0176, allocations: 213.1 kB / 289.3 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0176, allocations: 0 / 289.3 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002551/0.01785, allocations: 99.84 kB / 289.4 MB, free: 0.5547 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.0001287/0.01798, allocations: 137.8 kB / 289.5 MB, free: 420 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005041/0.01849, allocations: 0.5501 MB / 290.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01849, allocations: 0 / 290.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.01874, allocations: 369.5 kB / 290.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007022/0.01944, allocations: 383.8 kB / 290.8 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007603/0.02021, allocations: 0.6871 MB / 291.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6e-05/0.02027, allocations: 105.1 kB / 291.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0008794/0.02114, allocations: 0.7393 MB / 292.3 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004336/0.02158, allocations: 275.9 kB / 292.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of SimCode: time 6.32e-07/0.02158, allocations: 4 kB / 292.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of Templates: time 0.01183/0.03341, allocations: 11.98 MB / 304.6 MB, free: 1.172 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.9911536728031933]