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.001531/0.001531, allocations: 87.58 kB / 21.19 MB, free: 3.367 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.001198/0.001198, allocations: 161 kB / 24.56 MB, free: 0 / 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 1.023/1.023, allocations: 177.1 MB / 205 MB, free: 5.637 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.353e-06/1.353e-06, allocations: 0 / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.321e-05/2.457e-05, allocations: 2.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002489/0.002514, allocations: 2.066 MB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.004493, allocations: 1.115 MB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.00462, allocations: 7.938 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.004844, allocations: 47.58 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.004951, allocations: 55.56 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005227/0.005474, allocations: 171.7 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.005886, allocations: 475.5 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.006091, allocations: 118.1 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007134/0.006805, allocations: 0.9125 MB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.00706, allocations: 239.3 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.419e-05/0.007134, allocations: 44 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.478e-05/0.007199, allocations: 44 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.007337, allocations: 151.5 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.007477, allocations: 147.5 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.008032, allocations: 0.7201 MB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.008034, allocations: 0 / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.008035, allocations: 0 / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.008044, allocations: 0 / 279.3 MB, free: 11.25 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.001068/0.009112, allocations: 0.92 MB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.009166, allocations: 8.031 kB / 280.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.009344, allocations: 76.66 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004757/0.00982, allocations: 291.4 kB / 280.5 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.387e-05/0.009864, allocations: 29.03 kB / 280.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.546e-05/0.009939, allocations: 32.38 kB / 280.6 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000698/0.01064, allocations: 446.5 kB / 281 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.01065, allocations: 192 / 281 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.674e-05/0.01071, allocations: 16.38 kB / 281.1 MB, free: 9.355 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.01072, allocations: 11.94 kB / 281.1 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004598/0.01118, allocations: 275.2 kB / 281.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.01264, allocations: 0.9607 MB / 282.3 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006821/0.01332, allocations: 366.8 kB / 282.7 MB, free: 7.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.01356, allocations: 171.6 kB / 282.8 MB, free: 7.496 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.417e-05/0.01361, allocations: 8.281 kB / 282.8 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004064/0.01402, allocations: 344.8 kB / 283.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.184e-06/0.01402, allocations: 0 / 283.2 MB, free: 7.125 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001011/0.01503, allocations: 0.6837 MB / 283.9 MB, free: 6.398 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.01509, allocations: 110.8 kB / 284 MB, free: 6.266 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.01537, allocations: 332.2 kB / 284.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.541e-05/0.01542, allocations: 45.69 kB / 284.3 MB, free: 5.875 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.01555, allocations: 231.6 kB / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.498e-05/0.01565, allocations: 87.41 kB / 284.6 MB, free: 5.559 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002484/0.0159, allocations: 203.7 kB / 284.8 MB, free: 5.352 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.01607, allocations: 0.5157 MB / 285.4 MB, free: 4.824 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/0.01631, allocations: 164.3 kB / 285.5 MB, free: 4.648 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002705/0.01658, allocations: 234.8 kB / 285.7 MB, free: 4.387 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004987/0.01708, allocations: 404.3 kB / 286.1 MB, free: 3.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.01708, allocations: 7.938 kB / 286.1 MB, free: 3.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007993/0.01788, allocations: 0.582 MB / 286.7 MB, free: 3.328 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.01793, allocations: 67.39 kB / 286.8 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.01793, allocations: 0 / 286.8 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.01795, allocations: 8.031 kB / 286.8 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.01807, allocations: 55.91 kB / 286.9 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.01808, allocations: 7.938 kB / 286.9 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.01822, allocations: 35.88 kB / 286.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002359/0.01845, allocations: 279.7 kB / 287.2 MB, free: 2.871 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.000226/0.01868, allocations: 275.8 kB / 287.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.797e-05/0.01878, allocations: 51.8 kB / 287.5 MB, free: 2.527 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.01883, allocations: 26.97 kB / 287.5 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.01883, allocations: 4 kB / 287.5 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.01884, allocations: 0 / 287.5 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.01885, allocations: 7.984 kB / 287.5 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003671/0.01921, allocations: 336.3 kB / 287.9 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.01922, allocations: 3.938 kB / 287.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.55e-05/0.0193, allocations: 55.91 kB / 287.9 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.01931, allocations: 4 kB / 287.9 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.01937, allocations: 47.97 kB / 288 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.01937, allocations: 4 kB / 288 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01937, allocations: 0 / 288 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000756/0.02013, allocations: 0.5767 MB / 288.5 MB, free: 1.391 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.02033, allocations: 123.6 kB / 288.7 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.088e-05/0.0204, allocations: 12 kB / 288.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.0205, allocations: 19.98 kB / 288.7 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.02073, allocations: 103.9 kB / 288.8 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002337/0.02096, allocations: 279.7 kB / 289.1 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001441/0.0211, allocations: 209.1 kB / 289.3 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0211, allocations: 0 / 289.3 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003536/0.02146, allocations: 107.8 kB / 289.4 MB, free: 0.5547 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.0001658/0.02162, allocations: 141.9 kB / 289.5 MB, free: 416 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000704/0.02233, allocations: 0.5462 MB / 290.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.02233, allocations: 64 / 290.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.02269, allocations: 365.5 kB / 290.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009086/0.0236, allocations: 378.9 kB / 290.8 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009869/0.02458, allocations: 0.6794 MB / 291.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.179e-05/0.02467, allocations: 109.1 kB / 291.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001273/0.02594, allocations: 0.7393 MB / 292.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006218/0.02656, allocations: 279.8 kB / 292.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of SimCode: time 9.22e-07/0.02656, allocations: 0 / 292.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of Templates: time 0.01457/0.04113, allocations: 11.48 MB / 304.1 MB, free: 1.68 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2140329251997173]