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.001542/0.001542, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001687/0.001687, allocations: 213.6 kB / 23.75 MB, free: 4.668 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.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.002139/0.002139, allocations: 51.92 kB / 378.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2857, allocations: 53.36 MB / 431.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004061/0.2898, allocations: 2.171 MB / 433.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.2925, allocations: 1.169 MB / 435 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.2927, allocations: 4 kB / 435 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002371/0.2929, allocations: 51.5 kB / 435 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.2931, allocations: 47.66 kB / 435.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006066/0.2937, allocations: 183.6 kB / 435.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006383/0.2943, allocations: 467.6 kB / 435.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.2946, allocations: 117.3 kB / 435.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.2957, allocations: 0.8344 MB / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004982/0.2962, allocations: 274.9 kB / 436.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.2963, allocations: 40 kB / 437 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.907e-05/0.2964, allocations: 44 kB / 437 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.2966, allocations: 147.5 kB / 437.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003579/0.2969, allocations: 226.7 kB / 437.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.298, allocations: 0.9277 MB / 438.3 MB, free: 244 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.298, allocations: 0 / 438.3 MB, free: 244 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.298, allocations: 0 / 438.3 MB, free: 244 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.298, allocations: 4 kB / 438.3 MB, free: 240 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.0015/0.2995, allocations: 0.8005 MB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.2996, allocations: 12.03 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.2997, allocations: 48.66 kB / 439.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005767/0.3003, allocations: 285.3 kB / 439.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/0.3004, allocations: 29.03 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-05/0.3004, allocations: 36.31 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009686/0.3014, allocations: 494.1 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.3014, allocations: 0 / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.3015, allocations: 12 kB / 440 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.3015, allocations: 8 kB / 440 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008198/0.3023, allocations: 378.3 kB / 440.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.3048, allocations: 1.082 MB / 441.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.3061, allocations: 411.5 kB / 441.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003653/0.3065, allocations: 166.2 kB / 442 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-05/0.3065, allocations: 4.281 kB / 442 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007099/0.3072, allocations: 351.2 kB / 442.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 3.206e-06/0.3072, allocations: 0 / 442.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001558/0.3088, allocations: 0.7237 MB / 443.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.3089, allocations: 110.8 kB / 443.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004041/0.3093, allocations: 305.7 kB / 443.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.033e-05/0.3094, allocations: 37.7 kB / 443.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.3096, allocations: 196.8 kB / 443.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.3097, allocations: 83.47 kB / 443.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.31, allocations: 182 kB / 444 MB, free: 10.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3102, allocations: 346.7 kB / 444.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003935/0.3106, allocations: 176.8 kB / 444.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004316/0.311, allocations: 236.5 kB / 444.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008859/0.3119, allocations: 0.5249 MB / 445.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3119, allocations: 0 / 445.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001258/0.3132, allocations: 0.6488 MB / 445.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.936e-05/0.3132, allocations: 62.22 kB / 446 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3132, allocations: 0 / 446 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/0.3133, allocations: 7.984 kB / 446 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.3134, allocations: 63.91 kB / 446 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.3134, allocations: 0 / 446 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.3137, allocations: 35.88 kB / 446.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003639/0.314, allocations: 275.7 kB / 446.3 MB, free: 7.898 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.0005109/0.3145, allocations: 289.1 kB / 446.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-05/0.3146, allocations: 35.81 kB / 446.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.553e-05/0.3147, allocations: 34.95 kB / 446.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3147, allocations: 4 kB / 446.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3147, allocations: 4 kB / 446.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.3147, allocations: 3.938 kB / 446.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/0.3154, allocations: 452.3 kB / 447.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.3154, allocations: 0 / 447.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.3155, allocations: 51.97 kB / 447.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3155, allocations: 3.984 kB / 447.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.427e-05/0.3156, allocations: 47.97 kB / 447.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.3156, allocations: 0 / 447.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.3156, allocations: 3.938 kB / 447.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.3167, allocations: 0.6052 MB / 447.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004146/0.3171, allocations: 123.7 kB / 448 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3172, allocations: 19.94 kB / 448 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.3174, allocations: 15.98 kB / 448 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.3176, allocations: 91.89 kB / 448.1 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003265/0.318, allocations: 279.7 kB / 448.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.3182, allocations: 205.1 kB / 448.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3182, allocations: 4 kB / 448.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000464/0.3186, allocations: 99.84 kB / 448.7 MB, free: 5.465 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.0002239/0.3189, allocations: 137.8 kB / 448.8 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3199, allocations: 0.5492 MB / 449.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3199, allocations: 0 / 449.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005962/0.3205, allocations: 350.4 kB / 449.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.3219, allocations: 340.8 kB / 450 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3233, allocations: 0.7034 MB / 450.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005105/0.3238, allocations: 0.8033 MB / 451.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001506/0.3253, allocations: 0.7549 MB / 452.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007404/0.326, allocations: 262.8 kB / 452.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.326, allocations: 0 / 452.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of Templates: time 0.01921/0.3452, allocations: 11.05 MB / 463.6 MB, free: 6.324 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.865536029916257]