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.0008235/0.0008235, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003353/0.003353, allocations: 160 kB / 24.7 MB, free: 9.418 MB / 18.57 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 0.8723/0.8723, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.833e-06/1.833e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.078e-05/2.261e-05, allocations: 8.953 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.001927/0.001949, allocations: 1.985 MB / 327.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.003492, allocations: 1.115 MB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.178e-05/0.003574, allocations: 7.938 kB / 328.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.003739, allocations: 51.5 kB / 329 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.785e-05/0.003827, allocations: 47.59 kB / 329 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.004221, allocations: 187.5 kB / 329.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.004569, allocations: 467.6 kB / 329.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.00474, allocations: 109.3 kB / 329.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005771/0.005318, allocations: 0.9087 MB / 330.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.005517, allocations: 243.3 kB / 330.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.005575, allocations: 40 kB / 331 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.653e-05/0.005631, allocations: 44 kB / 331 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.00575, allocations: 163.4 kB / 331.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.005863, allocations: 139.5 kB / 331.3 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005588/0.006422, allocations: 0.9617 MB / 332.3 MB, free: 8.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.006424, allocations: 0 / 332.3 MB, free: 8.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.006425, allocations: 4 kB / 332.3 MB, free: 8.969 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.00643, allocations: 0 / 332.3 MB, free: 8.969 MB / 298.7 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.000809/0.007239, allocations: 0.8123 MB / 333.1 MB, free: 8.113 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.007269, allocations: 8.031 kB / 333.1 MB, free: 8.105 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.624e-05/0.007345, allocations: 48.66 kB / 333.1 MB, free: 8.059 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.007629, allocations: 292.6 kB / 333.4 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/0.007655, allocations: 24.97 kB / 333.5 MB, free: 7.719 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.007704, allocations: 36.38 kB / 333.5 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.008233, allocations: 0.5368 MB / 334 MB, free: 7.129 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.008244, allocations: 192 / 334 MB, free: 7.129 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.008281, allocations: 16.38 kB / 334 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.008288, allocations: 11.94 kB / 334.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004374/0.008725, allocations: 441.8 kB / 334.5 MB, free: 6.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/0.009834, allocations: 0.9459 MB / 335.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006151/0.01045, allocations: 494.7 kB / 335.9 MB, free: 5.172 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.01065, allocations: 233.3 kB / 336.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.151e-05/0.01068, allocations: 4.281 kB / 336.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003552/0.01104, allocations: 395.8 kB / 336.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 1.844e-06/0.01104, allocations: 0 / 336.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008515/0.01189, allocations: 0.8592 MB / 337.4 MB, free: 3.613 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.01194, allocations: 114.8 kB / 337.5 MB, free: 3.477 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.01213, allocations: 301.7 kB / 337.8 MB, free: 3.172 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.01217, allocations: 41.7 kB / 337.8 MB, free: 3.125 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.01226, allocations: 184.9 kB / 338 MB, free: 2.938 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.623e-05/0.01232, allocations: 91.41 kB / 338.1 MB, free: 2.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002864/0.01261, allocations: 186.1 kB / 338.3 MB, free: 2.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.01269, allocations: 338.8 kB / 338.6 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.01291, allocations: 244.3 kB / 338.9 MB, free: 2.066 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.01315, allocations: 292.6 kB / 339.1 MB, free: 1.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004497/0.0136, allocations: 0.5184 MB / 339.7 MB, free: 1.199 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.0136, allocations: 3.938 kB / 339.7 MB, free: 1.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006359/0.01424, allocations: 0.7216 MB / 340.4 MB, free: 452 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.01427, allocations: 63.41 kB / 340.5 MB, free: 376 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01428, allocations: 0 / 340.5 MB, free: 376 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.01429, allocations: 4 kB / 340.5 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.829e-05/0.01437, allocations: 63.89 kB / 340.5 MB, free: 308 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.01438, allocations: 7.938 kB / 340.5 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.272e-05/0.01447, allocations: 27.88 kB / 340.6 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.01463, allocations: 283.8 kB / 340.8 MB, free: 15.98 MB / 314.7 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.0002036/0.01483, allocations: 293 kB / 341.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.221e-05/0.01487, allocations: 31.81 kB / 341.1 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.01491, allocations: 38.95 kB / 341.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.01492, allocations: 4 kB / 341.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.01492, allocations: 0 / 341.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.01493, allocations: 0 / 341.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002644/0.01519, allocations: 361 kB / 341.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.01519, allocations: 7.938 kB / 341.5 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.086e-05/0.01525, allocations: 55.91 kB / 341.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.01525, allocations: 0 / 341.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.01529, allocations: 47.97 kB / 341.7 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.01529, allocations: 4 kB / 341.7 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.01529, allocations: 0 / 341.7 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005813/0.01587, allocations: 0.6673 MB / 342.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.01602, allocations: 123.6 kB / 342.4 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.103e-05/0.01607, allocations: 23.98 kB / 342.5 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-05/0.01614, allocations: 27.86 kB / 342.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.01628, allocations: 83.91 kB / 342.6 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001477/0.01643, allocations: 287.7 kB / 342.9 MB, free: 13.87 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000119/0.01655, allocations: 201.2 kB / 343.1 MB, free: 13.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01655, allocations: 4 kB / 343.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002351/0.01678, allocations: 103.8 kB / 343.2 MB, free: 13.56 MB / 314.7 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.00012/0.0169, allocations: 137.7 kB / 343.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005794/0.01748, allocations: 0.6549 MB / 343.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01748, allocations: 3.938 kB / 344 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003079/0.01779, allocations: 405.7 kB / 344.3 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/0.01843, allocations: 342.1 kB / 344.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009341/0.01936, allocations: 0.8092 MB / 345.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.01949, allocations: 204.2 kB / 345.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005909/0.02008, allocations: 379.6 kB / 346.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02008, allocations: 0 / 346.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of Templates: time 0.006141/0.02622, allocations: 8.329 MB / 354.4 MB, free: 1.871 MB / 314.7 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.943524259142578]