Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001058/0.001058, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.0009932/0.0009932, allocations: 158.9 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9192/0.9192, allocations: 158.6 MB / 187.5 MB, free: 2.945 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.247e-05, allocations: 2.312 kB / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00215/0.002172, allocations: 2.032 MB / 253.1 MB, free: 5.762 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.003841, allocations: 1.131 MB / 254.3 MB, free: 4.621 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.003941, allocations: 7.938 kB / 254.3 MB, free: 4.613 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.004105, allocations: 51.56 kB / 254.3 MB, free: 4.562 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.786e-05/0.004193, allocations: 43.59 kB / 254.4 MB, free: 4.52 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004455/0.004638, allocations: 187.6 kB / 254.6 MB, free: 4.336 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.005029, allocations: 471.5 kB / 255 MB, free: 3.875 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.00521, allocations: 117.2 kB / 255.1 MB, free: 3.762 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006326/0.005843, allocations: 0.9086 MB / 256 MB, free: 2.852 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.006061, allocations: 239.3 kB / 256.3 MB, free: 2.617 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-05/0.006121, allocations: 40 kB / 256.3 MB, free: 2.578 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.44e-05/0.006175, allocations: 44 kB / 256.4 MB, free: 2.535 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.006311, allocations: 159.4 kB / 256.5 MB, free: 2.379 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.00644, allocations: 143.5 kB / 256.7 MB, free: 2.238 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007106/0.00715, allocations: 0.7085 MB / 257.4 MB, free: 1.527 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.007155, allocations: 7.984 kB / 257.4 MB, free: 1.52 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.007155, allocations: 0 / 257.4 MB, free: 1.52 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.884e-06/0.007163, allocations: 3.938 kB / 257.4 MB, free: 1.516 MB / 234.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.0008397/0.008003, allocations: 0.9084 MB / 258.3 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.008037, allocations: 11.98 kB / 258.3 MB, free: 0.543 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.008173, allocations: 80.66 kB / 258.4 MB, free: 476 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.008475, allocations: 299.3 kB / 258.7 MB, free: 148 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.008503, allocations: 25.03 kB / 258.7 MB, free: 124 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.008554, allocations: 36.38 kB / 258.7 MB, free: 88 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/0.009082, allocations: 442.5 kB / 259.2 MB, free: 15.63 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.009093, allocations: 4.188 kB / 259.2 MB, free: 15.63 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.247e-05/0.009136, allocations: 16.38 kB / 259.2 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.009147, allocations: 15.94 kB / 259.2 MB, free: 15.6 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003511/0.009498, allocations: 271.2 kB / 259.5 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.01059, allocations: 0.9529 MB / 260.4 MB, free: 14.33 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.01111, allocations: 363.5 kB / 260.8 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.0113, allocations: 175.5 kB / 260.9 MB, free: 13.76 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.01134, allocations: 4.281 kB / 260.9 MB, free: 13.76 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003092/0.01165, allocations: 352.1 kB / 261.3 MB, free: 13.39 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 2.014e-06/0.01165, allocations: 0 / 261.3 MB, free: 13.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008055/0.01246, allocations: 0.6829 MB / 262 MB, free: 12.66 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.01251, allocations: 110.8 kB / 262.1 MB, free: 12.53 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.01273, allocations: 340.1 kB / 262.4 MB, free: 12.18 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.405e-05/0.01278, allocations: 41.7 kB / 262.4 MB, free: 12.13 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.01289, allocations: 231.7 kB / 262.7 MB, free: 11.9 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.01296, allocations: 87.38 kB / 262.8 MB, free: 11.82 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.01316, allocations: 195.8 kB / 262.9 MB, free: 11.62 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.0133, allocations: 0.5118 MB / 263.5 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.0135, allocations: 168.3 kB / 263.6 MB, free: 10.92 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.01371, allocations: 234.7 kB / 263.9 MB, free: 10.66 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005315/0.01424, allocations: 401 kB / 264.2 MB, free: 10.22 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.01425, allocations: 7.938 kB / 264.3 MB, free: 10.21 MB / 250.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005912/0.01484, allocations: 0.5898 MB / 264.8 MB, free: 9.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.587e-05/0.01487, allocations: 59.41 kB / 264.9 MB, free: 9.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01488, allocations: 0 / 264.9 MB, free: 9.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.01489, allocations: 4 kB / 264.9 MB, free: 9.516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.755e-05/0.01498, allocations: 63.89 kB / 265 MB, free: 9.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.01499, allocations: 4 kB / 265 MB, free: 9.449 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.01511, allocations: 27.89 kB / 265 MB, free: 9.422 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.01529, allocations: 283.7 kB / 265.3 MB, free: 9.145 MB / 250.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.0002085/0.0155, allocations: 271.9 kB / 265.5 MB, free: 8.855 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.741e-05/0.01558, allocations: 47.81 kB / 265.6 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.903e-05/0.01562, allocations: 38.95 kB / 265.6 MB, free: 8.773 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.01563, allocations: 4 kB / 265.6 MB, free: 8.77 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.01563, allocations: 0 / 265.6 MB, free: 8.77 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.01564, allocations: 3.938 kB / 265.6 MB, free: 8.766 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.01595, allocations: 344.2 kB / 266 MB, free: 8.395 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.01595, allocations: 3.938 kB / 266 MB, free: 8.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.823e-05/0.01601, allocations: 51.97 kB / 266 MB, free: 8.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.01601, allocations: 4 kB / 266 MB, free: 8.336 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.01607, allocations: 47.97 kB / 266.1 MB, free: 8.289 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.01607, allocations: 160 / 266.1 MB, free: 8.289 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.01607, allocations: 0 / 266.1 MB, free: 8.289 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005557/0.01663, allocations: 0.5818 MB / 266.7 MB, free: 7.66 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.01676, allocations: 131.6 kB / 266.8 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.147e-05/0.01683, allocations: 12 kB / 266.8 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.299e-05/0.01692, allocations: 23.98 kB / 266.8 MB, free: 7.496 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.01709, allocations: 99.89 kB / 266.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/0.01726, allocations: 283.7 kB / 267.2 MB, free: 7.121 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.01737, allocations: 205.1 kB / 267.4 MB, free: 6.922 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01737, allocations: 0 / 267.4 MB, free: 6.922 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002555/0.01763, allocations: 103.8 kB / 267.5 MB, free: 6.82 MB / 250.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.0001276/0.01775, allocations: 141.8 kB / 267.6 MB, free: 6.668 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005371/0.01829, allocations: 0.5526 MB / 268.2 MB, free: 6.062 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01829, allocations: 0 / 268.2 MB, free: 6.062 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.01857, allocations: 361.7 kB / 268.5 MB, free: 5.668 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007125/0.01928, allocations: 386.1 kB / 268.9 MB, free: 5.305 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007848/0.02007, allocations: 0.6902 MB / 269.6 MB, free: 4.57 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.945e-05/0.02013, allocations: 101.1 kB / 269.7 MB, free: 4.453 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0009292/0.02106, allocations: 0.7432 MB / 270.5 MB, free: 3.703 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004529/0.02151, allocations: 271.9 kB / 270.7 MB, free: 3.434 MB / 250.7 MB Notification: Performance of SimCode: time 8.01e-07/0.02151, allocations: 0 / 270.7 MB, free: 3.434 MB / 250.7 MB Notification: Performance of Templates: time 0.01147/0.03298, allocations: 11.46 MB / 282.2 MB, free: 7.793 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.8943934310227633]