Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001076/0.001076, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001031/0.001031, allocations: 172.4 kB / 25.33 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8967/0.8967, allocations: 158.6 MB / 187.2 MB, free: 2.5 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.755e-06/2.755e-06, allocations: 4 kB / 251 MB, free: 3.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.215e-05/2.491e-05, allocations: 2.312 kB / 251 MB, free: 3.59 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002358/0.002383, allocations: 2.046 MB / 253.1 MB, free: 1.527 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.004059, allocations: 1.135 MB / 254.2 MB, free: 392 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.004163, allocations: 3.938 kB / 254.2 MB, free: 388 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.004327, allocations: 51.56 kB / 254.3 MB, free: 336 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.378e-05/0.004421, allocations: 43.59 kB / 254.3 MB, free: 292 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004197/0.004841, allocations: 183.6 kB / 254.5 MB, free: 108 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003654/0.005206, allocations: 471.5 kB / 255 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.005378, allocations: 113.2 kB / 255.1 MB, free: 15.54 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006356/0.006013, allocations: 0.9165 MB / 256 MB, free: 14.62 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.006244, allocations: 239.3 kB / 256.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.325e-05/0.006317, allocations: 44 kB / 256.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.78e-05/0.006385, allocations: 40 kB / 256.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.006544, allocations: 159.4 kB / 256.5 MB, free: 14.14 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.006686, allocations: 143.5 kB / 256.6 MB, free: 14 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005209/0.007207, allocations: 0.7162 MB / 257.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.007209, allocations: 0 / 257.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.00721, allocations: 0 / 257.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.007217, allocations: 0 / 257.3 MB, free: 13.29 MB / 250.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.0009065/0.008124, allocations: 0.9161 MB / 258.2 MB, free: 12.32 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.008157, allocations: 15.98 kB / 258.2 MB, free: 12.3 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.008287, allocations: 80.59 kB / 258.3 MB, free: 12.22 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.008569, allocations: 291.4 kB / 258.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.008598, allocations: 29.03 kB / 258.6 MB, free: 11.88 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.962e-05/0.008648, allocations: 32.38 kB / 258.7 MB, free: 11.85 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005055/0.009154, allocations: 442.5 kB / 259.1 MB, free: 11.4 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.009164, allocations: 192 / 259.1 MB, free: 11.4 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.009202, allocations: 12.38 kB / 259.1 MB, free: 11.39 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.009213, allocations: 15.92 kB / 259.1 MB, free: 11.37 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.009519, allocations: 279.2 kB / 259.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.01067, allocations: 0.9529 MB / 260.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004939/0.01117, allocations: 363.5 kB / 260.7 MB, free: 9.715 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.01133, allocations: 175.5 kB / 260.9 MB, free: 9.527 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.01137, allocations: 8.266 kB / 260.9 MB, free: 9.52 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003194/0.01169, allocations: 344.1 kB / 261.2 MB, free: 9.156 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 1.864e-06/0.01169, allocations: 0 / 261.2 MB, free: 9.156 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.000823/0.01251, allocations: 0.679 MB / 261.9 MB, free: 8.434 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.01256, allocations: 110.8 kB / 262 MB, free: 8.301 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.01277, allocations: 344.1 kB / 262.4 MB, free: 7.949 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.01281, allocations: 37.7 kB / 262.4 MB, free: 7.906 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.01292, allocations: 235.7 kB / 262.6 MB, free: 7.672 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/0.01299, allocations: 83.42 kB / 262.7 MB, free: 7.59 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.01317, allocations: 203.7 kB / 262.9 MB, free: 7.383 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003122/0.01348, allocations: 0.5157 MB / 263.4 MB, free: 6.855 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.01365, allocations: 164.3 kB / 263.6 MB, free: 6.684 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.01384, allocations: 242.7 kB / 263.8 MB, free: 6.414 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003457/0.01418, allocations: 401 kB / 264.2 MB, free: 5.977 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.01419, allocations: 3.938 kB / 264.2 MB, free: 5.973 MB / 250.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005781/0.01477, allocations: 0.582 MB / 264.8 MB, free: 5.359 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/0.0148, allocations: 66.41 kB / 264.9 MB, free: 5.285 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.01481, allocations: 4 kB / 264.9 MB, free: 5.281 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.01482, allocations: 4 kB / 264.9 MB, free: 5.277 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.746e-05/0.01491, allocations: 63.89 kB / 264.9 MB, free: 5.215 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.01491, allocations: 4 kB / 264.9 MB, free: 5.211 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.01502, allocations: 31.83 kB / 265 MB, free: 5.18 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.01519, allocations: 283.7 kB / 265.2 MB, free: 4.902 MB / 250.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.0001804/0.01537, allocations: 271.8 kB / 265.5 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.178e-05/0.01544, allocations: 47.81 kB / 265.5 MB, free: 4.566 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.109e-05/0.01548, allocations: 30.95 kB / 265.6 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.01549, allocations: 4 kB / 265.6 MB, free: 4.535 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.01549, allocations: 0 / 265.6 MB, free: 4.535 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.01549, allocations: 3.938 kB / 265.6 MB, free: 4.531 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.01576, allocations: 344.2 kB / 265.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01576, allocations: 3.938 kB / 265.9 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.564e-05/0.01582, allocations: 55.97 kB / 266 MB, free: 4.102 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.01582, allocations: 0 / 266 MB, free: 4.102 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.7e-05/0.01587, allocations: 51.97 kB / 266 MB, free: 4.051 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.01587, allocations: 0 / 266 MB, free: 4.051 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.01587, allocations: 4.094 kB / 266 MB, free: 4.047 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005218/0.01639, allocations: 0.574 MB / 266.6 MB, free: 3.426 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.01652, allocations: 127.6 kB / 266.7 MB, free: 3.301 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.796e-05/0.01658, allocations: 16 kB / 266.7 MB, free: 3.285 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.782e-05/0.01665, allocations: 16 kB / 266.8 MB, free: 3.27 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.01681, allocations: 99.88 kB / 266.9 MB, free: 3.172 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/0.01696, allocations: 291.7 kB / 267.1 MB, free: 2.887 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001068/0.01707, allocations: 209.1 kB / 267.4 MB, free: 2.684 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01707, allocations: 0 / 267.4 MB, free: 2.684 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002518/0.01732, allocations: 99.84 kB / 267.4 MB, free: 2.586 MB / 250.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.000116/0.01744, allocations: 137.8 kB / 267.6 MB, free: 2.438 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004763/0.01791, allocations: 0.5565 MB / 268.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-06/0.01791, allocations: 0 / 268.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002547/0.01817, allocations: 361.7 kB / 268.5 MB, free: 1.434 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006479/0.01882, allocations: 383.5 kB / 268.9 MB, free: 1.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007599/0.01958, allocations: 0.6901 MB / 269.6 MB, free: 344 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.782e-05/0.01963, allocations: 101.1 kB / 269.7 MB, free: 224 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001172/0.02081, allocations: 0.7394 MB / 270.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004288/0.02124, allocations: 279.9 kB / 270.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.02124, allocations: 3.938 kB / 270.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of Templates: time 0.01156/0.03279, allocations: 11.98 MB / 282.7 MB, free: 3.02 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.8689733506180346]