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.001421/0.001421, allocations: 117.2 kB / 18.5 MB, free: 4.543 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.001574/0.001574, allocations: 202.6 kB / 21.45 MB, free: 1.59 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.527/1.527, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.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 0.001862/0.001862, allocations: 63.88 kB / 373.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1257, allocations: 53.32 MB / 427.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004013/0.1297, allocations: 2.168 MB / 429.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002857/0.1326, allocations: 1.161 MB / 430.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.1327, allocations: 4 kB / 430.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.1329, allocations: 43.58 kB / 430.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001239/0.1331, allocations: 47.58 kB / 430.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.1337, allocations: 175.8 kB / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005767/0.1342, allocations: 459.6 kB / 431.2 MB, free: 444 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/0.1345, allocations: 124.9 kB / 431.3 MB, free: 316 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2743/0.4088, allocations: 0.8317 MB / 432.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004412/0.4093, allocations: 267.7 kB / 432.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.4094, allocations: 42.59 kB / 432.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.641e-05/0.4095, allocations: 42.66 kB / 432.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001741/0.4096, allocations: 159 kB / 432.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.4098, allocations: 220.5 kB / 432.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006839/0.4105, allocations: 0.9255 MB / 433.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4105, allocations: 3.688 kB / 433.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4105, allocations: 0 / 433.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.4105, allocations: 0 / 433.8 MB, free: 8.258 MB / 350.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.001131/0.4117, allocations: 0.8831 MB / 434.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.4117, allocations: 9.219 kB / 434.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.4118, allocations: 49.31 kB / 434.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.4122, allocations: 350.9 kB / 435.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/0.4123, allocations: 25.78 kB / 435.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.4124, allocations: 39.08 kB / 435.1 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.4134, allocations: 489.5 kB / 435.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.4134, allocations: 5 kB / 435.6 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.476e-05/0.4135, allocations: 15.72 kB / 435.6 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.4135, allocations: 8.562 kB / 435.6 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007872/0.4143, allocations: 375.9 kB / 436 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.4163, allocations: 1.117 MB / 437.1 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.4174, allocations: 417.4 kB / 437.5 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004265/0.4179, allocations: 176.2 kB / 437.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.358e-05/0.4179, allocations: 3.688 kB / 437.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007313/0.4187, allocations: 337.1 kB / 438 MB, free: 7.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.385e-06/0.4187, allocations: 0 / 438 MB, free: 7.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001587/0.4203, allocations: 0.7382 MB / 438.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.4203, allocations: 113.9 kB / 438.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.4206, allocations: 303.5 kB / 439.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.126e-05/0.4207, allocations: 43.17 kB / 439.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.4208, allocations: 183.5 kB / 439.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.4209, allocations: 82.12 kB / 439.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000299/0.4212, allocations: 184.5 kB / 439.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.768e-05/0.4213, allocations: 340.7 kB / 440 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/0.4217, allocations: 183.8 kB / 440.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004394/0.4222, allocations: 240 kB / 440.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00096/0.4231, allocations: 0.5143 MB / 440.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4231, allocations: 1.062 kB / 440.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001208/0.4243, allocations: 0.6526 MB / 441.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.487e-05/0.4244, allocations: 60.98 kB / 441.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.4244, allocations: 2.375 kB / 441.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/0.4244, allocations: 2.688 kB / 441.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.4246, allocations: 59.66 kB / 441.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4246, allocations: 3.094 kB / 441.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.4248, allocations: 27.45 kB / 441.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003858/0.4252, allocations: 281.7 kB / 442 MB, free: 5.406 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.0003766/0.4256, allocations: 294.8 kB / 442.3 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.111e-05/0.4257, allocations: 32.45 kB / 442.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.905e-05/0.4258, allocations: 39.28 kB / 442.4 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.4258, allocations: 3.25 kB / 442.4 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.4258, allocations: 7.094 kB / 442.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.4258, allocations: 5.969 kB / 442.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006146/0.4264, allocations: 484.9 kB / 442.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.4264, allocations: 0 / 442.9 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.4265, allocations: 53 kB / 442.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.4265, allocations: 2.344 kB / 442.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.715e-05/0.4266, allocations: 45.28 kB / 443 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.4266, allocations: 2.891 kB / 443 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4266, allocations: 0 / 443 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.4278, allocations: 0.6105 MB / 443.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/0.428, allocations: 196.1 kB / 443.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.4281, allocations: 13.84 kB / 443.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.4283, allocations: 16.88 kB / 443.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/0.4286, allocations: 87.45 kB / 443.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003801/0.4289, allocations: 280.6 kB / 444.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002132/0.4292, allocations: 201.6 kB / 444.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4292, allocations: 0 / 444.3 MB, free: 4.273 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004835/0.4296, allocations: 110.1 kB / 444.4 MB, free: 4.242 MB / 350.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.0001941/0.4298, allocations: 141 kB / 444.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.4309, allocations: 0.5508 MB / 445.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4309, allocations: 5.094 kB / 445.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005734/0.4315, allocations: 346 kB / 445.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.4329, allocations: 336.8 kB / 445.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.4345, allocations: 0.7061 MB / 446.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4349, allocations: 0.81 MB / 447.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002084/0.437, allocations: 0.7476 MB / 448.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000891/0.4379, allocations: 262.5 kB / 448.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4379, allocations: 0 / 448.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of Templates: time 0.02087/0.4587, allocations: 10.94 MB / 459.3 MB, free: 13.88 MB / 366.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.942919388413429]