Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 143.8 kB / 24.97 MB, free: 8.816 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.063/1.063, allocations: 173.3 MB / 201.5 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.326e-06/3.326e-06, allocations: 4 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.181e-05/3.514e-05, allocations: 10.19 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002686/0.002721, allocations: 2.032 MB / 270.1 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.004739, allocations: 1.095 MB / 271.2 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.00489, allocations: 7.938 kB / 271.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.005057, allocations: 55.5 kB / 271.3 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.005168, allocations: 47.58 kB / 271.3 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000566/0.005734, allocations: 183.6 kB / 271.5 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005607/0.006295, allocations: 471.5 kB / 271.9 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.006539, allocations: 113.3 kB / 272.1 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007791/0.007318, allocations: 0.9126 MB / 273 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.007623, allocations: 239.2 kB / 273.2 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-05/0.007695, allocations: 44 kB / 273.2 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.122e-05/0.007766, allocations: 44 kB / 273.3 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.007913, allocations: 159.4 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.008077, allocations: 147.5 kB / 273.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005684/0.008645, allocations: 0.7047 MB / 274.3 MB, free: 480 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.00865, allocations: 0 / 274.3 MB, free: 480 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.008652, allocations: 0 / 274.3 MB, free: 480 kB / 250.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.008661, allocations: 3.938 kB / 274.3 MB, free: 476 kB / 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.001043/0.009704, allocations: 0.92 MB / 275.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.009749, allocations: 8.922 kB / 275.2 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.00991, allocations: 80.66 kB / 275.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003538/0.01026, allocations: 295.4 kB / 275.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.737e-05/0.0103, allocations: 21.03 kB / 275.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/0.01036, allocations: 40.31 kB / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.01098, allocations: 438.5 kB / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.01099, allocations: 192 / 276.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.657e-05/0.01104, allocations: 20.38 kB / 276.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.01106, allocations: 11.94 kB / 276.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003782/0.01143, allocations: 271.2 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.01276, allocations: 0.9646 MB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007912/0.01355, allocations: 367.3 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.01373, allocations: 171.6 kB / 277.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.01377, allocations: 8.281 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003569/0.01412, allocations: 344.1 kB / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.725e-06/0.01413, allocations: 0 / 278.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008765/0.015, allocations: 0.679 MB / 278.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.01508, allocations: 114.8 kB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.01535, allocations: 336.2 kB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.402e-05/0.01541, allocations: 41.7 kB / 279.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.01554, allocations: 235.6 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.01563, allocations: 83.42 kB / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.01583, allocations: 199.7 kB / 279.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.016, allocations: 0.5157 MB / 280.4 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.0162, allocations: 168.3 kB / 280.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.01643, allocations: 234.8 kB / 280.8 MB, free: 9.594 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.01684, allocations: 393.1 kB / 281.2 MB, free: 9.164 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.01684, allocations: 3.938 kB / 281.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006723/0.01751, allocations: 0.5897 MB / 281.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.435e-05/0.01758, allocations: 59.41 kB / 281.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.01759, allocations: 0 / 281.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.01761, allocations: 8.031 kB / 281.8 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.01774, allocations: 59.91 kB / 281.9 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.01775, allocations: 7.984 kB / 281.9 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.0179, allocations: 27.95 kB / 281.9 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/0.01812, allocations: 279.7 kB / 282.2 MB, free: 8.094 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.0002372/0.01836, allocations: 279.7 kB / 282.5 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.688e-05/0.01845, allocations: 51.81 kB / 282.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.038e-05/0.01851, allocations: 30.95 kB / 282.6 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.01852, allocations: 4 kB / 282.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.01852, allocations: 0 / 282.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.01853, allocations: 4 kB / 282.6 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003777/0.01891, allocations: 340.4 kB / 282.9 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.01891, allocations: 3.938 kB / 282.9 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.01898, allocations: 51.91 kB / 282.9 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.01899, allocations: 4 kB / 282.9 MB, free: 7.281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.324e-05/0.01904, allocations: 51.97 kB / 283 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.01905, allocations: 160 / 283 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.01905, allocations: 0 / 283 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006866/0.01973, allocations: 0.5817 MB / 283.6 MB, free: 6.602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.01993, allocations: 127.6 kB / 283.7 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.02, allocations: 19.94 kB / 283.7 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.02011, allocations: 16 kB / 283.7 MB, free: 6.441 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002327/0.02034, allocations: 103.9 kB / 283.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/0.02053, allocations: 283.7 kB / 284.1 MB, free: 6.062 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001376/0.02067, allocations: 205.1 kB / 284.3 MB, free: 5.863 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.02067, allocations: 4 kB / 284.3 MB, free: 5.859 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002982/0.02097, allocations: 99.89 kB / 284.4 MB, free: 5.762 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.0002089/0.02118, allocations: 137.8 kB / 284.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007354/0.02191, allocations: 0.5594 MB / 285.1 MB, free: 5.008 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.02191, allocations: 4.062 kB / 285.1 MB, free: 5.004 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003616/0.02228, allocations: 361.7 kB / 285.5 MB, free: 4.609 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009747/0.02325, allocations: 373 kB / 285.8 MB, free: 4.273 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.02438, allocations: 0.6833 MB / 286.5 MB, free: 3.547 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.336e-05/0.02447, allocations: 101.1 kB / 286.6 MB, free: 3.426 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.001275/0.02574, allocations: 0.7432 MB / 287.4 MB, free: 2.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006251/0.02637, allocations: 275.9 kB / 287.6 MB, free: 2.41 MB / 266.7 MB Notification: Performance of SimCode: time 9.51e-07/0.02637, allocations: 4 kB / 287.6 MB, free: 2.406 MB / 266.7 MB Notification: Performance of Templates: time 0.122/0.1484, allocations: 11.46 MB / 299.1 MB, free: 29.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.0090793101117015]