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.001657/0.001657, allocations: 111 kB / 21.18 MB, free: 0.5273 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.001565/0.001565, allocations: 207.2 kB / 24.47 MB, free: 3.699 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.747/1.747, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.00163/0.00163, allocations: 47.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.311, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003694/0.3147, allocations: 1.985 MB / 434.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.3175, allocations: 1.103 MB / 435.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.3177, allocations: 7.938 kB / 435.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.3179, allocations: 51.56 kB / 435.5 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.318, allocations: 47.59 kB / 435.5 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.3186, allocations: 179.7 kB / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.3192, allocations: 475.5 kB / 436.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.3194, allocations: 109.3 kB / 436.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.3204, allocations: 0.8383 MB / 437.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004201/0.3209, allocations: 267 kB / 437.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.321, allocations: 44 kB / 437.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.3211, allocations: 40 kB / 437.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.3213, allocations: 163.4 kB / 437.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.3215, allocations: 175.1 kB / 437.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.3225, allocations: 0.9368 MB / 438.7 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3225, allocations: 0 / 438.7 MB, free: 324 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3225, allocations: 0 / 438.7 MB, free: 324 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.3225, allocations: 0 / 438.7 MB, free: 324 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.001465/0.3239, allocations: 0.8006 MB / 439.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.324, allocations: 8.031 kB / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.3241, allocations: 52.59 kB / 439.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.3247, allocations: 285.3 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/0.3247, allocations: 29.03 kB / 439.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-05/0.3248, allocations: 36.38 kB / 439.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009985/0.3258, allocations: 0.5288 MB / 440.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.3258, allocations: 0 / 440.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.177e-05/0.3259, allocations: 20 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.3259, allocations: 4 kB / 440.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008745/0.3268, allocations: 429.8 kB / 440.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.3292, allocations: 0.9496 MB / 441.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.3306, allocations: 479.8 kB / 442.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004795/0.3311, allocations: 224.7 kB / 442.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.379e-05/0.3311, allocations: 4.281 kB / 442.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.3322, allocations: 398.7 kB / 442.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 6.132e-06/0.3322, allocations: 3.984 kB / 442.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001865/0.334, allocations: 0.8357 MB / 443.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.042e-05/0.3341, allocations: 114.8 kB / 443.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004098/0.3345, allocations: 305.7 kB / 444.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.469e-05/0.3346, allocations: 37.7 kB / 444.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.3348, allocations: 196.8 kB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.335, allocations: 79.44 kB / 444.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000344/0.3353, allocations: 182 kB / 444.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3355, allocations: 342.8 kB / 445 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004444/0.3359, allocations: 236.2 kB / 445.2 MB, free: 9.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.3364, allocations: 291.9 kB / 445.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009575/0.3374, allocations: 0.5338 MB / 446 MB, free: 8.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.3374, allocations: 0 / 446 MB, free: 8.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001375/0.3388, allocations: 0.6902 MB / 446.7 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.892e-05/0.3388, allocations: 63.39 kB / 446.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3389, allocations: 0 / 446.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.3389, allocations: 4 kB / 446.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.3391, allocations: 63.88 kB / 446.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3391, allocations: 4 kB / 446.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.3393, allocations: 27.88 kB / 446.9 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000307/0.3396, allocations: 283.7 kB / 447.2 MB, free: 7.453 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.000456/0.3401, allocations: 285.1 kB / 447.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.405e-05/0.3402, allocations: 35.81 kB / 447.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.03e-05/0.3402, allocations: 42.89 kB / 447.5 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3402, allocations: 4 kB / 447.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.383e-06/0.3403, allocations: 0 / 447.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3403, allocations: 3.984 kB / 447.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005287/0.3408, allocations: 353 kB / 447.9 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3408, allocations: 4 kB / 447.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.3409, allocations: 47.91 kB / 447.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.3409, allocations: 0 / 447.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.419e-05/0.341, allocations: 47.97 kB / 448 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.341, allocations: 4 kB / 448 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.341, allocations: 4 kB / 448 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.3422, allocations: 0.6632 MB / 448.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/0.3426, allocations: 123.7 kB / 448.8 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3427, allocations: 16 kB / 448.8 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.3428, allocations: 12 kB / 448.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.3431, allocations: 91.89 kB / 448.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003031/0.3434, allocations: 283.7 kB / 449.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002409/0.3436, allocations: 201.2 kB / 449.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3436, allocations: 4 kB / 449.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004645/0.3441, allocations: 99.84 kB / 449.5 MB, free: 5.066 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.0002493/0.3443, allocations: 141.8 kB / 449.6 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.3455, allocations: 0.651 MB / 450.2 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3455, allocations: 0 / 450.2 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005969/0.3461, allocations: 401.9 kB / 450.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.3474, allocations: 346.2 kB / 451 MB, free: 3.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.3489, allocations: 0.7652 MB / 451.7 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.3492, allocations: 200.2 kB / 451.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001501/0.3507, allocations: 0.751 MB / 452.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00075/0.3514, allocations: 262.8 kB / 452.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3514, allocations: 0 / 452.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of Templates: time 0.02075/0.3722, allocations: 11.69 MB / 464.6 MB, free: 5.711 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/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.4650061590073165]