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.001339/0.001339, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001497/0.001497, allocations: 209.6 kB / 23.73 MB, free: 4.523 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.549/1.549, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001514/0.001514, allocations: 43.94 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2916, allocations: 53.36 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004113/0.2957, allocations: 1.992 MB / 433.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.2986, allocations: 1.111 MB / 434.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.2988, allocations: 7.938 kB / 434.7 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.299, allocations: 43.58 kB / 434.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.2992, allocations: 55.56 kB / 434.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006085/0.2999, allocations: 171.8 kB / 434.9 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005808/0.3004, allocations: 475.5 kB / 435.4 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.3007, allocations: 109.3 kB / 435.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.3017, allocations: 0.8383 MB / 436.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.3021, allocations: 271 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.3022, allocations: 44 kB / 436.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.799e-05/0.3023, allocations: 40 kB / 436.7 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002629/0.3026, allocations: 159.4 kB / 436.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002632/0.3028, allocations: 175.1 kB / 437 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.3038, allocations: 0.9364 MB / 438 MB, free: 300 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3039, allocations: 0 / 438 MB, free: 300 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3039, allocations: 0 / 438 MB, free: 300 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.3039, allocations: 0 / 438 MB, free: 300 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.001492/0.3054, allocations: 0.8026 MB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.3054, allocations: 16.02 kB / 438.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.3056, allocations: 48.66 kB / 438.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006554/0.3062, allocations: 285.3 kB / 439.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.756e-05/0.3063, allocations: 28.97 kB / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3064, allocations: 40.36 kB / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.3075, allocations: 0.5288 MB / 439.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3075, allocations: 0 / 439.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.881e-05/0.3075, allocations: 20 kB / 439.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.3076, allocations: 4 kB / 439.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008305/0.3084, allocations: 433.8 kB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.3104, allocations: 0.9418 MB / 441.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.3116, allocations: 474.9 kB / 441.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/0.3121, allocations: 225.6 kB / 441.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.763e-05/0.3121, allocations: 4.281 kB / 441.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007397/0.3129, allocations: 394.7 kB / 442.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.304e-06/0.3129, allocations: 0 / 442.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001684/0.3145, allocations: 0.8396 MB / 443 MB, free: 11.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.736e-05/0.3146, allocations: 118.7 kB / 443.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000397/0.315, allocations: 305.7 kB / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.17e-05/0.3151, allocations: 37.7 kB / 443.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.3153, allocations: 188.9 kB / 443.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.3154, allocations: 87.41 kB / 443.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000307/0.3157, allocations: 182 kB / 443.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3159, allocations: 342.8 kB / 444.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/0.3163, allocations: 244.1 kB / 444.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.3168, allocations: 288 kB / 444.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008892/0.3177, allocations: 0.5183 MB / 445.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3177, allocations: 0 / 445.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001279/0.319, allocations: 0.6984 MB / 446 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.686e-05/0.3191, allocations: 63.44 kB / 446 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3191, allocations: 0 / 446 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.3191, allocations: 4 kB / 446 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3192, allocations: 59.89 kB / 446.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.3193, allocations: 7.938 kB / 446.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.3195, allocations: 27.88 kB / 446.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002903/0.3198, allocations: 283.7 kB / 446.4 MB, free: 7.434 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.0004442/0.3202, allocations: 297 kB / 446.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3203, allocations: 31.81 kB / 446.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.236e-05/0.3204, allocations: 38.95 kB / 446.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.3204, allocations: 4 kB / 446.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.3204, allocations: 4 kB / 446.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3204, allocations: 0 / 446.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005377/0.321, allocations: 353 kB / 447.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.321, allocations: 4 kB / 447.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.3211, allocations: 51.91 kB / 447.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3211, allocations: 0 / 447.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.404e-05/0.3212, allocations: 51.97 kB / 447.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.3212, allocations: 0 / 447.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3212, allocations: 4.156 kB / 447.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.3224, allocations: 0.6515 MB / 447.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.3227, allocations: 123.7 kB / 448 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3228, allocations: 19.94 kB / 448 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.323, allocations: 15.98 kB / 448 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.3232, allocations: 99.88 kB / 448.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002887/0.3235, allocations: 283.7 kB / 448.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002091/0.3237, allocations: 197.2 kB / 448.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3237, allocations: 0 / 448.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004693/0.3242, allocations: 99.84 kB / 448.7 MB, free: 5.043 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.0002379/0.3244, allocations: 141.8 kB / 448.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.3256, allocations: 0.6548 MB / 449.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3256, allocations: 0 / 449.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006521/0.3263, allocations: 405.9 kB / 449.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.3276, allocations: 332.1 kB / 450.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.3292, allocations: 0.7652 MB / 451 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.3295, allocations: 204.2 kB / 451.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001539/0.331, allocations: 0.7471 MB / 451.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007104/0.3317, allocations: 266.8 kB / 452.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of SimCode: time 1.343e-06/0.3317, allocations: 0 / 452.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of Templates: time 0.01958/0.3513, allocations: 11.7 MB / 463.9 MB, free: 5.676 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: 4.905534989200532]