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.00137/0.00137, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001001/0.001001, allocations: 145.7 kB / 24.89 MB, free: 8.793 MB / 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 0.9757/0.9757, allocations: 173.4 MB / 201.5 MB, free: 8.77 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.553e-06/1.553e-06, allocations: 0 / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.177e-05, allocations: 2.312 kB / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002586/0.002608, allocations: 2.073 MB / 270.6 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.004538, allocations: 1.118 MB / 271.7 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.004681, allocations: 7.938 kB / 271.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.004859, allocations: 47.56 kB / 271.8 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.00497, allocations: 39.59 kB / 271.8 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004906/0.005461, allocations: 187.7 kB / 272 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.005904, allocations: 475.5 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.006107, allocations: 108 kB / 272.5 MB, free: 1.938 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000722/0.006829, allocations: 0.8657 MB / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003221/0.007152, allocations: 239.3 kB / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-05/0.007222, allocations: 44 kB / 273.7 MB, free: 0.793 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.134e-05/0.007274, allocations: 44 kB / 273.7 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.007396, allocations: 159.4 kB / 273.9 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.007522, allocations: 147.5 kB / 274 MB, free: 460 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.008029, allocations: 0.7085 MB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.008037, allocations: 3.984 kB / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.008038, allocations: 0 / 274.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.008048, allocations: 3.938 kB / 274.8 MB, free: 15.73 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.0008386/0.008887, allocations: 0.7211 MB / 275.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.008917, allocations: 8.922 kB / 275.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.009032, allocations: 68.89 kB / 275.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005578/0.00959, allocations: 260.6 kB / 275.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.009618, allocations: 29.03 kB / 275.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.834e-05/0.009666, allocations: 36.38 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004261/0.01009, allocations: 358.4 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.0101, allocations: 192 / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.01014, allocations: 20.38 kB / 276.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.01015, allocations: 11.94 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.01037, allocations: 167.8 kB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009342/0.0113, allocations: 0.6913 MB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.01171, allocations: 277.3 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.01183, allocations: 124.8 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.01187, allocations: 4.281 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.01211, allocations: 266.4 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.793e-06/0.01211, allocations: 0 / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0004558/0.01257, allocations: 419.5 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.01261, allocations: 114.8 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.01277, allocations: 264.7 kB / 278.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.01281, allocations: 41.7 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/0.01288, allocations: 157 kB / 278.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.141e-05/0.01295, allocations: 95.33 kB / 278.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.0131, allocations: 138 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.826e-05/0.01318, allocations: 334.8 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.01329, allocations: 112.3 kB / 279.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.01343, allocations: 172.6 kB / 279.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.01372, allocations: 317.5 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.01372, allocations: 0 / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003816/0.0141, allocations: 355 kB / 280.2 MB, free: 9.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.01415, allocations: 67.44 kB / 280.3 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.01415, allocations: 4 kB / 280.3 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.01416, allocations: 0 / 280.3 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.01429, allocations: 55.81 kB / 280.3 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.01429, allocations: 4 kB / 280.4 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.0144, allocations: 31.92 kB / 280.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/0.01456, allocations: 247.7 kB / 280.6 MB, free: 9.445 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.0001727/0.01473, allocations: 224 kB / 280.8 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.01479, allocations: 39.91 kB / 280.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.042e-05/0.01483, allocations: 34.95 kB / 280.9 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.01484, allocations: 4 kB / 280.9 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.01484, allocations: 0 / 280.9 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01485, allocations: 3.984 kB / 280.9 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.01508, allocations: 209.7 kB / 281.1 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.01509, allocations: 4 kB / 281.1 MB, free: 8.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.611e-05/0.01517, allocations: 43.86 kB / 281.2 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.01518, allocations: 4 kB / 281.2 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.01521, allocations: 27.91 kB / 281.2 MB, free: 8.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.01522, allocations: 3.938 kB / 281.2 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01522, allocations: 4 kB / 281.2 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.01556, allocations: 344.6 kB / 281.6 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.01567, allocations: 91.72 kB / 281.6 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.932e-05/0.01573, allocations: 19.94 kB / 281.7 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.849e-05/0.01581, allocations: 19.98 kB / 281.7 MB, free: 8.309 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.01595, allocations: 59.91 kB / 281.7 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/0.01611, allocations: 255.7 kB / 282 MB, free: 8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.658e-05/0.01618, allocations: 82.77 kB / 282.1 MB, free: 7.918 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.01618, allocations: 4 kB / 282.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002566/0.01643, allocations: 99.84 kB / 282.2 MB, free: 7.816 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.0001244/0.01656, allocations: 119 kB / 282.3 MB, free: 7.691 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006506/0.01721, allocations: 435 kB / 282.7 MB, free: 7.215 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/0.01721, allocations: 4 kB / 282.7 MB, free: 7.211 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.01744, allocations: 281.7 kB / 283 MB, free: 6.895 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005974/0.01803, allocations: 353.4 kB / 283.3 MB, free: 6.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007293/0.01876, allocations: 0.6453 MB / 284 MB, free: 5.887 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.391e-05/0.01883, allocations: 101.1 kB / 284.1 MB, free: 5.766 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0009672/0.01979, allocations: 0.7276 MB / 284.8 MB, free: 5.035 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000887/0.02068, allocations: 408.6 kB / 285.2 MB, free: 4.633 MB / 266.7 MB Notification: Performance of SimCode: time 9.51e-07/0.02068, allocations: 4 kB / 285.2 MB, free: 4.629 MB / 266.7 MB Notification: Performance of Templates: time 0.1074/0.128, allocations: 11.91 MB / 297.1 MB, free: 28.88 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 -s gbode -gbm=radauIIA3 -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: 2.7996188369579613]