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.001871/0.001871, allocations: 103.5 kB / 20.97 MB, free: 3.453 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.002005/0.002005, allocations: 156.8 kB / 24.27 MB, free: 156 kB / 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.648/1.648, allocations: 177 MB / 204.5 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.203e-06/1.203e-06, allocations: 0 / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.538e-05, allocations: 2.312 kB / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003686/0.003711, allocations: 2.03 MB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002829/0.00654, allocations: 1.118 MB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.006653, allocations: 7.938 kB / 275.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.00687, allocations: 51.56 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.007008, allocations: 39.59 kB / 275.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005838/0.007592, allocations: 175.7 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007872/0.008379, allocations: 475.5 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.008635, allocations: 117.2 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.009826, allocations: 0.9165 MB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.01023, allocations: 239.3 kB / 277.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.01039, allocations: 40 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.01054, allocations: 44 kB / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002494/0.01079, allocations: 159.4 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000245/0.01103, allocations: 135.5 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.01223, allocations: 0.9656 MB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.01224, allocations: 0 / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.01224, allocations: 0 / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.01225, allocations: 0 / 278.7 MB, free: 11.29 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.001555/0.0138, allocations: 0.9666 MB / 279.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.01384, allocations: 15.92 kB / 279.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.01408, allocations: 80.66 kB / 279.7 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006532/0.01473, allocations: 291.5 kB / 280 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.793e-05/0.01477, allocations: 21.03 kB / 280 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.01488, allocations: 36.38 kB / 280.1 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009771/0.01586, allocations: 469.8 kB / 280.5 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.01587, allocations: 4.188 kB / 280.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/0.01594, allocations: 12.38 kB / 280.6 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.01595, allocations: 11.94 kB / 280.6 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008083/0.01676, allocations: 349.8 kB / 280.9 MB, free: 8.949 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.01919, allocations: 1.136 MB / 282 MB, free: 7.777 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.02037, allocations: 440 kB / 282.5 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004109/0.02079, allocations: 203.5 kB / 282.7 MB, free: 7.109 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.365e-05/0.02087, allocations: 8.281 kB / 282.7 MB, free: 7.102 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006806/0.02155, allocations: 380.9 kB / 283 MB, free: 6.703 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.054e-06/0.02155, allocations: 4 kB / 283.1 MB, free: 6.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001811/0.02336, allocations: 0.7694 MB / 283.8 MB, free: 5.887 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.655e-05/0.02346, allocations: 114.7 kB / 283.9 MB, free: 5.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005185/0.02398, allocations: 424.2 kB / 284.3 MB, free: 5.316 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.219e-05/0.02406, allocations: 37.7 kB / 284.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.02428, allocations: 235.7 kB / 284.6 MB, free: 5.035 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.02443, allocations: 107.4 kB / 284.7 MB, free: 4.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003909/0.02482, allocations: 239.7 kB / 285 MB, free: 4.688 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003253/0.02515, allocations: 0.5352 MB / 285.5 MB, free: 4.141 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.02557, allocations: 208.3 kB / 285.7 MB, free: 3.926 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005186/0.02609, allocations: 290.7 kB / 286 MB, free: 3.605 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009494/0.02704, allocations: 0.4927 MB / 286.5 MB, free: 3.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.02705, allocations: 7.938 kB / 286.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001346/0.0284, allocations: 0.6602 MB / 287.1 MB, free: 2.371 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.834e-05/0.02848, allocations: 63.39 kB / 287.2 MB, free: 2.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.02848, allocations: 4 kB / 287.2 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.02851, allocations: 4 kB / 287.2 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.02868, allocations: 59.91 kB / 287.3 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.0287, allocations: 7.938 kB / 287.3 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.0289, allocations: 31.88 kB / 287.3 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003414/0.02925, allocations: 283.7 kB / 287.6 MB, free: 1.914 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.0003814/0.02963, allocations: 291.8 kB / 287.9 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.02976, allocations: 43.81 kB / 287.9 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.622e-05/0.02985, allocations: 38.95 kB / 287.9 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.02985, allocations: 4 kB / 288 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.707e-05/0.02987, allocations: 0 / 288 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.02988, allocations: 3.984 kB / 288 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.03051, allocations: 408.3 kB / 288.4 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.03052, allocations: 7.938 kB / 288.4 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.03065, allocations: 51.91 kB / 288.4 MB, free: 1.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.03065, allocations: 4 kB / 288.4 MB, free: 1.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.184e-05/0.03074, allocations: 47.97 kB / 288.5 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.03075, allocations: 0 / 288.5 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.03075, allocations: 0 / 288.5 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.03204, allocations: 0.6366 MB / 289.1 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003709/0.03241, allocations: 127.6 kB / 289.2 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.03251, allocations: 12 kB / 289.2 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.03266, allocations: 23.98 kB / 289.3 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.03295, allocations: 99.89 kB / 289.4 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003336/0.03329, allocations: 287.7 kB / 289.6 MB, free: 15.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002529/0.03354, allocations: 233.1 kB / 289.9 MB, free: 15.53 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03354, allocations: 0 / 289.9 MB, free: 15.53 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004799/0.03402, allocations: 99.84 kB / 290 MB, free: 15.43 MB / 282.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.0002498/0.03427, allocations: 137.9 kB / 290.1 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.03563, allocations: 0.6268 MB / 290.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.03564, allocations: 0 / 290.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007372/0.03637, allocations: 413.7 kB / 291.1 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.03793, allocations: 387.3 kB / 291.5 MB, free: 13.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.03948, allocations: 0.7184 MB / 292.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.03973, allocations: 192.6 kB / 292.4 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.00158/0.04131, allocations: 0.7354 MB / 293.1 MB, free: 12.11 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007787/0.04209, allocations: 283.8 kB / 293.4 MB, free: 11.83 MB / 282.7 MB Notification: Performance of SimCode: time 1.603e-06/0.04209, allocations: 7.938 kB / 293.4 MB, free: 11.82 MB / 282.7 MB Notification: Performance of Templates: time 0.0209/0.06299, allocations: 11.44 MB / 304.9 MB, free: 296 kB / 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.877824041992426]