Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001373, allocations: 82.59 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 171 kB / 24.82 MB, free: 9.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.021/1.021, allocations: 177 MB / 205.1 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.15e-05/1.303e-05, allocations: 5.266 kB / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.005511/0.005524, allocations: 2.039 MB / 275.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005223/0.01075, allocations: 1.115 MB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.01088, allocations: 7.938 kB / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.01103, allocations: 43.64 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.01115, allocations: 51.5 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004567/0.0116, allocations: 183.7 kB / 276.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004073/0.01201, allocations: 475.5 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.01219, allocations: 109.8 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008209/0.01301, allocations: 0.9203 MB / 278.3 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002569/0.01327, allocations: 235.3 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.431e-05/0.01335, allocations: 44 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003084/0.01644, allocations: 44 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.01658, allocations: 151.5 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.01673, allocations: 147.5 kB / 278.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005536/0.01728, allocations: 0.7124 MB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.013e-06/0.01728, allocations: 0 / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.01728, allocations: 8 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.01729, allocations: 0 / 279.6 MB, free: 10.95 MB / 266.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.0008957/0.01818, allocations: 0.9238 MB / 280.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.01822, allocations: 11.98 kB / 280.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.01836, allocations: 76.66 kB / 280.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.01868, allocations: 291.4 kB / 280.9 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.01871, allocations: 21.03 kB / 280.9 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-05/0.01878, allocations: 36.38 kB / 280.9 MB, free: 9.516 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.01931, allocations: 410.5 kB / 281.3 MB, free: 9.094 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.01932, allocations: 4.188 kB / 281.3 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003052/0.02237, allocations: 16.38 kB / 281.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.02238, allocations: 11.94 kB / 281.4 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.02272, allocations: 243.8 kB / 281.6 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.02393, allocations: 0.8987 MB / 282.5 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005428/0.02448, allocations: 339.5 kB / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.02465, allocations: 159.5 kB / 283 MB, free: 7.352 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.02469, allocations: 12.2 kB / 283 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005953/0.02529, allocations: 332.8 kB / 283.3 MB, free: 6.988 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.874e-06/0.02529, allocations: 0 / 283.3 MB, free: 6.988 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.003841/0.02913, allocations: 0.6368 MB / 284 MB, free: 6.309 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.02918, allocations: 114.8 kB / 284.1 MB, free: 6.172 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.02941, allocations: 340 kB / 284.4 MB, free: 5.824 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.02946, allocations: 37.7 kB / 284.4 MB, free: 5.781 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.02957, allocations: 223.6 kB / 284.7 MB, free: 5.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.979e-05/0.02966, allocations: 91.44 kB / 284.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/0.02987, allocations: 195.7 kB / 284.9 MB, free: 5.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.03001, allocations: 0.5157 MB / 285.5 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.03019, allocations: 148.3 kB / 285.6 MB, free: 4.582 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.03041, allocations: 222.7 kB / 285.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000411/0.03082, allocations: 376.5 kB / 286.2 MB, free: 3.922 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.03083, allocations: 0 / 286.2 MB, free: 3.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.003694/0.03452, allocations: 0.5623 MB / 286.8 MB, free: 3.328 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.03456, allocations: 62.53 kB / 286.8 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.03456, allocations: 0 / 286.8 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.03458, allocations: 4 kB / 286.8 MB, free: 3.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.03468, allocations: 63.89 kB / 286.9 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.03469, allocations: 4 kB / 286.9 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.03482, allocations: 35.88 kB / 286.9 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002149/0.03504, allocations: 279.8 kB / 287.2 MB, free: 2.879 MB / 266.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.0002057/0.03524, allocations: 263.9 kB / 287.5 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-05/0.03534, allocations: 51.69 kB / 287.5 MB, free: 2.547 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.1e-05/0.03539, allocations: 38.95 kB / 287.5 MB, free: 2.512 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.03539, allocations: 4 kB / 287.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.03539, allocations: 4 kB / 287.5 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.0354, allocations: 3.984 kB / 287.6 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000314/0.03571, allocations: 288.8 kB / 287.8 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.03571, allocations: 0 / 287.8 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.526e-05/0.03579, allocations: 51.95 kB / 287.9 MB, free: 2.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.03579, allocations: 7.938 kB / 287.9 MB, free: 2.133 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.03585, allocations: 51.86 kB / 287.9 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.03585, allocations: 0 / 287.9 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.03585, allocations: 7.984 kB / 287.9 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006362/0.03649, allocations: 0.539 MB / 288.5 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.03667, allocations: 123.7 kB / 288.6 MB, free: 1.367 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.767e-05/0.03673, allocations: 19.94 kB / 288.6 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.03684, allocations: 19.98 kB / 288.6 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.03699, allocations: 87.91 kB / 288.7 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003231/0.04022, allocations: 283.7 kB / 289 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.04033, allocations: 197.1 kB / 289.2 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04033, allocations: 0 / 289.2 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00032/0.04065, allocations: 103.8 kB / 289.3 MB, free: 0.6758 MB / 266.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.0001035/0.04075, allocations: 141.8 kB / 289.4 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003955/0.04115, allocations: 0.5135 MB / 290 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.04115, allocations: 0 / 290 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004669/0.04162, allocations: 341.8 kB / 290.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006213/0.04224, allocations: 375.2 kB / 290.7 MB, free: 15.24 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006386/0.04288, allocations: 0.6754 MB / 291.3 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.873e-05/0.04292, allocations: 101.1 kB / 291.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0008308/0.04376, allocations: 0.7237 MB / 292.2 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006619/0.04442, allocations: 453.5 kB / 292.6 MB, free: 13.23 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.04442, allocations: 0 / 292.6 MB, free: 13.23 MB / 282.7 MB Notification: Performance of Templates: time 0.01142/0.05584, allocations: 12.15 MB / 304.7 MB, free: 1.012 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.907284096814692]