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.001586/0.001586, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001669/0.001669, allocations: 191.8 kB / 23.71 MB, free: 4.406 MB / 14.72 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.557/1.557, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001706/0.001706, allocations: 51.92 kB / 370.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2947, allocations: 52.18 MB / 423.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004642/0.2994, allocations: 1.983 MB / 425 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003459/0.3028, allocations: 1.076 MB / 426.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.303, allocations: 3.938 kB / 426.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002353/0.3032, allocations: 43.58 kB / 426.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.3034, allocations: 47.64 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006819/0.3041, allocations: 183.6 kB / 426.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007386/0.3048, allocations: 471.6 kB / 426.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000294/0.3051, allocations: 109.3 kB / 427 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.3065, allocations: 0.8421 MB / 427.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005098/0.307, allocations: 255 kB / 428.1 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.3071, allocations: 44 kB / 428.1 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.3073, allocations: 44 kB / 428.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.3076, allocations: 159.4 kB / 428.3 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.3079, allocations: 167.1 kB / 428.5 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.309, allocations: 0.9325 MB / 429.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.309, allocations: 0 / 429.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.309, allocations: 0 / 429.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3091, allocations: 4 kB / 429.4 MB, free: 8.141 MB / 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.001472/0.3105, allocations: 0.8083 MB / 430.2 MB, free: 7.289 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.3106, allocations: 8.031 kB / 430.2 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.3107, allocations: 52.61 kB / 430.3 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005504/0.3112, allocations: 281.4 kB / 430.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.3113, allocations: 29.03 kB / 430.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.052e-05/0.3114, allocations: 32.38 kB / 430.6 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009229/0.3123, allocations: 0.5327 MB / 431.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3123, allocations: 0 / 431.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.04e-05/0.3124, allocations: 20 kB / 431.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.3124, allocations: 8 kB / 431.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007829/0.3132, allocations: 429.8 kB / 431.6 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.3151, allocations: 0.9535 MB / 432.5 MB, free: 4.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.3162, allocations: 475.8 kB / 433 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.3166, allocations: 224.7 kB / 433.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.3166, allocations: 4.281 kB / 433.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006859/0.3173, allocations: 403.3 kB / 433.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.053e-06/0.3173, allocations: 0 / 433.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001599/0.3189, allocations: 0.8312 MB / 434.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.994e-05/0.319, allocations: 110.8 kB / 434.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000352/0.3193, allocations: 305.7 kB / 434.9 MB, free: 2.418 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.856e-05/0.3194, allocations: 37.7 kB / 434.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.3196, allocations: 188.9 kB / 435.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.3197, allocations: 83.38 kB / 435.2 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002785/0.32, allocations: 186 kB / 435.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3201, allocations: 342.8 kB / 435.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.3206, allocations: 236.2 kB / 435.9 MB, free: 1.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.321, allocations: 292 kB / 436.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000981/0.322, allocations: 0.5249 MB / 436.7 MB, free: 464 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.322, allocations: 0 / 436.7 MB, free: 464 kB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001281/0.3233, allocations: 0.6952 MB / 437.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.256e-05/0.3234, allocations: 59.41 kB / 437.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.3234, allocations: 0 / 437.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3234, allocations: 7.984 kB / 437.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3236, allocations: 63.84 kB / 437.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.3236, allocations: 0 / 437.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.3238, allocations: 31.88 kB / 437.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002884/0.3241, allocations: 275.7 kB / 437.8 MB, free: 15.29 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.000372/0.3244, allocations: 301.1 kB / 438.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.18e-05/0.3245, allocations: 35.81 kB / 438.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.354e-05/0.3246, allocations: 34.95 kB / 438.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3246, allocations: 4 kB / 438.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3246, allocations: 0 / 438.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3246, allocations: 0 / 438.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005363/0.3251, allocations: 364.9 kB / 438.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3251, allocations: 0 / 438.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.3253, allocations: 51.91 kB / 438.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3253, allocations: 4 kB / 438.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-05/0.3253, allocations: 43.97 kB / 438.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3253, allocations: 4.156 kB / 438.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3253, allocations: 0 / 438.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.3265, allocations: 0.6603 MB / 439.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003463/0.3269, allocations: 123.7 kB / 439.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.327, allocations: 20 kB / 439.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.3271, allocations: 15.98 kB / 439.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.3273, allocations: 91.89 kB / 439.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003162/0.3277, allocations: 279.7 kB / 439.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.3279, allocations: 197.2 kB / 440 MB, free: 12.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3279, allocations: 0 / 440 MB, free: 12.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004386/0.3283, allocations: 99.83 kB / 440.1 MB, free: 12.89 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.0002015/0.3285, allocations: 145.8 kB / 440.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.3297, allocations: 0.6515 MB / 440.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3297, allocations: 0 / 440.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005676/0.3303, allocations: 402 kB / 441.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.3315, allocations: 338.5 kB / 441.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.3329, allocations: 0.7769 MB / 442.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3331, allocations: 200.2 kB / 442.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001576/0.3347, allocations: 0.7471 MB / 443.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008173/0.3355, allocations: 262.8 kB / 443.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3355, allocations: 0 / 443.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of Templates: time 0.01888/0.3544, allocations: 11.69 MB / 455.3 MB, free: 13.54 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.9362066723406315]