Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 84 kB / 21.19 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 145.1 kB / 24.54 MB, free: 44 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.026/1.026, allocations: 173.4 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.802e-05/1.981e-05, allocations: 2.312 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003377/0.003397, allocations: 2.039 MB / 270 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002723/0.00612, allocations: 1.099 MB / 271.1 MB, free: 3.273 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.006242, allocations: 7.938 kB / 271.1 MB, free: 3.266 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.006422, allocations: 47.52 kB / 271.2 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.383e-05/0.006516, allocations: 47.58 kB / 271.2 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004781/0.006994, allocations: 187.6 kB / 271.4 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00039/0.007384, allocations: 475.5 kB / 271.9 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.007583, allocations: 101.3 kB / 272 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007255/0.008309, allocations: 0.9242 MB / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002869/0.008596, allocations: 239.2 kB / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.59e-05/0.008682, allocations: 40 kB / 273.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.619e-05/0.008748, allocations: 44 kB / 273.2 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.008881, allocations: 155.5 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.009007, allocations: 143.5 kB / 273.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005304/0.009538, allocations: 0.7163 MB / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.674e-06/0.009539, allocations: 0 / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.00954, allocations: 0 / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.009548, allocations: 0 / 274.2 MB, free: 172 kB / 250.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.0009937/0.01054, allocations: 0.9199 MB / 275.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.01059, allocations: 12.92 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.01073, allocations: 76.66 kB / 275.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003535/0.01108, allocations: 287.4 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.01111, allocations: 29.03 kB / 275.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.201e-05/0.01116, allocations: 36.38 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.01167, allocations: 442.5 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.01168, allocations: 4.172 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.01172, allocations: 20.31 kB / 276 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.01172, allocations: 15.94 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.01206, allocations: 271.2 kB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.01315, allocations: 0.9529 MB / 277.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.01371, allocations: 375.4 kB / 277.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.01391, allocations: 163.6 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.068e-05/0.01397, allocations: 8.281 kB / 277.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003403/0.01431, allocations: 348.1 kB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.533e-06/0.01432, allocations: 0 / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008108/0.01513, allocations: 0.6751 MB / 278.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.01518, allocations: 114.8 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.01544, allocations: 336.2 kB / 279.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.01548, allocations: 45.69 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.01561, allocations: 235.6 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/0.0157, allocations: 87.41 kB / 279.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/0.01591, allocations: 195.7 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.01609, allocations: 0.5079 MB / 280.3 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.01631, allocations: 172.3 kB / 280.5 MB, free: 9.562 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.01655, allocations: 230.8 kB / 280.7 MB, free: 9.305 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004328/0.01698, allocations: 397 kB / 281.1 MB, free: 8.871 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.01699, allocations: 3.938 kB / 281.1 MB, free: 8.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006693/0.01765, allocations: 0.5936 MB / 281.7 MB, free: 8.242 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.01769, allocations: 63.39 kB / 281.8 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.0177, allocations: 0 / 281.8 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.01772, allocations: 4 kB / 281.8 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.01782, allocations: 67.91 kB / 281.8 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.01783, allocations: 0 / 281.8 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.01794, allocations: 31.94 kB / 281.9 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.01814, allocations: 279.7 kB / 282.1 MB, free: 7.793 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.0002194/0.01835, allocations: 279.7 kB / 282.4 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.488e-05/0.01843, allocations: 43.81 kB / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.185e-05/0.01849, allocations: 38.95 kB / 282.5 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.01849, allocations: 4 kB / 282.5 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.0185, allocations: 0 / 282.5 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.01851, allocations: 3.984 kB / 282.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.01884, allocations: 332.4 kB / 282.8 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.01884, allocations: 11.94 kB / 282.8 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.883e-05/0.01891, allocations: 51.91 kB / 282.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.01891, allocations: 0 / 282.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.639e-05/0.01897, allocations: 47.97 kB / 282.9 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.01897, allocations: 4.156 kB / 282.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.01897, allocations: 0 / 282.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006061/0.01958, allocations: 0.5778 MB / 283.5 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.01974, allocations: 131.6 kB / 283.6 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.09e-05/0.0198, allocations: 16 kB / 283.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.125e-05/0.01988, allocations: 19.98 kB / 283.7 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.02006, allocations: 99.89 kB / 283.8 MB, free: 6.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001812/0.02024, allocations: 287.6 kB / 284.1 MB, free: 5.766 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001251/0.02037, allocations: 209.1 kB / 284.3 MB, free: 5.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02037, allocations: 0 / 284.3 MB, free: 5.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000302/0.02067, allocations: 99.89 kB / 284.4 MB, free: 5.465 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.0001466/0.02081, allocations: 141.8 kB / 284.5 MB, free: 5.316 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006219/0.02144, allocations: 0.5594 MB / 285.1 MB, free: 4.707 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.02144, allocations: 0 / 285.1 MB, free: 4.707 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003154/0.02175, allocations: 357.7 kB / 285.4 MB, free: 4.316 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007336/0.02249, allocations: 386.9 kB / 285.8 MB, free: 3.965 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008759/0.02336, allocations: 0.6794 MB / 286.5 MB, free: 3.242 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.406e-05/0.02344, allocations: 101.1 kB / 286.6 MB, free: 3.121 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.001024/0.02446, allocations: 0.7432 MB / 287.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004571/0.02492, allocations: 275.9 kB / 287.6 MB, free: 2.105 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02492, allocations: 0 / 287.6 MB, free: 2.105 MB / 266.7 MB Notification: Performance of Templates: time 0.1222/0.1471, allocations: 11.46 MB / 299 MB, free: 27.6 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1216371986083686]