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.001822/0.001822, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002196/0.002196, allocations: 210.5 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002311/0.002311, allocations: 47.92 kB / 378.2 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2688, allocations: 53.36 MB / 431.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003438/0.2722, allocations: 1.989 MB / 433.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00306/0.2753, allocations: 1.111 MB / 434.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003139/0.2756, allocations: 0 / 434.7 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.276, allocations: 55.5 kB / 434.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003431/0.2763, allocations: 43.64 kB / 434.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009086/0.2772, allocations: 183.6 kB / 434.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008185/0.278, allocations: 467.6 kB / 435.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.2784, allocations: 109.3 kB / 435.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001139/0.2795, allocations: 0.8383 MB / 436.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005153/0.28, allocations: 258.9 kB / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001836/0.2802, allocations: 44 kB / 436.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.2803, allocations: 44 kB / 436.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002132/0.2805, allocations: 147.5 kB / 436.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003093/0.2809, allocations: 179.1 kB / 437 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.2819, allocations: 0.9325 MB / 437.9 MB, free: 360 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2819, allocations: 0 / 437.9 MB, free: 360 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2819, allocations: 0 / 437.9 MB, free: 360 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.2819, allocations: 0 / 437.9 MB, free: 360 kB / 334.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.001832/0.2837, allocations: 0.8083 MB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2838, allocations: 8.031 kB / 438.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.284, allocations: 48.66 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006259/0.2846, allocations: 285.3 kB / 439.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.131e-05/0.2847, allocations: 29.03 kB / 439.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-05/0.2848, allocations: 36.38 kB / 439.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000988/0.2857, allocations: 0.5327 MB / 439.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.2858, allocations: 0 / 439.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.458e-05/0.2858, allocations: 12 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.2858, allocations: 8 kB / 439.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007848/0.2866, allocations: 437.7 kB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.2886, allocations: 0.9497 MB / 441.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.2896, allocations: 477.3 kB / 441.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/0.29, allocations: 221.6 kB / 441.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.125e-05/0.2901, allocations: 8.281 kB / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007277/0.2908, allocations: 394.7 kB / 442.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 6.602e-06/0.2908, allocations: 4 kB / 442.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001523/0.2923, allocations: 0.8358 MB / 443 MB, free: 11.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.681e-05/0.2924, allocations: 110.8 kB / 443.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.2928, allocations: 309.7 kB / 443.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.2929, allocations: 37.7 kB / 443.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.293, allocations: 192.8 kB / 443.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.2931, allocations: 87.41 kB / 443.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/0.2934, allocations: 186 kB / 443.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.2936, allocations: 342.8 kB / 444.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004175/0.294, allocations: 236.2 kB / 444.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004524/0.2945, allocations: 295.9 kB / 444.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008458/0.2953, allocations: 0.5106 MB / 445.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.2953, allocations: 0 / 445.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001223/0.2965, allocations: 0.698 MB / 446 MB, free: 7.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.526e-05/0.2966, allocations: 67.39 kB / 446 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.2966, allocations: 0 / 446 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.2966, allocations: 4 kB / 446 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.2968, allocations: 59.91 kB / 446.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2968, allocations: 3.938 kB / 446.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.297, allocations: 27.88 kB / 446.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003093/0.2973, allocations: 287.7 kB / 446.4 MB, free: 7.484 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.0004051/0.2977, allocations: 285.1 kB / 446.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.2978, allocations: 31.81 kB / 446.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.421e-05/0.2979, allocations: 38.95 kB / 446.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.2979, allocations: 11.92 kB / 446.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.2979, allocations: 0 / 446.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.298, allocations: 3.984 kB / 446.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005353/0.2985, allocations: 353 kB / 447.1 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/0.2985, allocations: 8 kB / 447.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.2986, allocations: 43.97 kB / 447.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.2986, allocations: 4 kB / 447.2 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.278e-05/0.2987, allocations: 43.97 kB / 447.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.2987, allocations: 7.938 kB / 447.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2987, allocations: 0 / 447.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.2998, allocations: 0.6593 MB / 447.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.3001, allocations: 123.7 kB / 448 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.3002, allocations: 16 kB / 448 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.3004, allocations: 16 kB / 448 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.3006, allocations: 91.89 kB / 448.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002866/0.3009, allocations: 279.7 kB / 448.4 MB, free: 5.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002146/0.3011, allocations: 201.2 kB / 448.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3011, allocations: 0 / 448.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004416/0.3015, allocations: 103.8 kB / 448.7 MB, free: 5.102 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.0001996/0.3017, allocations: 141.8 kB / 448.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.3028, allocations: 0.651 MB / 449.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3028, allocations: 3.938 kB / 449.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005554/0.3034, allocations: 405.8 kB / 449.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.3046, allocations: 332.8 kB / 450.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.3061, allocations: 0.7614 MB / 451 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.3064, allocations: 204.2 kB / 451.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001492/0.3079, allocations: 0.751 MB / 451.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007331/0.3086, allocations: 262.8 kB / 452.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3086, allocations: 4 kB / 452.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01821/0.3268, allocations: 11.68 MB / 463.9 MB, free: 5.75 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 5.048413911834359]