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.001299/0.001299, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001207/0.001207, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 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 0.9415/0.9415, allocations: 177.1 MB / 205.3 MB, free: 4.496 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.283e-06/1.283e-06, allocations: 0 / 273.5 MB, free: 4.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.3e-05, allocations: 3.344 kB / 273.5 MB, free: 4.379 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003316/0.003339, allocations: 2.067 MB / 275.6 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.005636, allocations: 1.138 MB / 276.7 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.005825, allocations: 7.938 kB / 276.7 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.006035, allocations: 47.56 kB / 276.8 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.006186, allocations: 47.59 kB / 276.8 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000602/0.006788, allocations: 189.1 kB / 277 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005521/0.00734, allocations: 463.6 kB / 277.4 MB, free: 448 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.007572, allocations: 115.9 kB / 277.6 MB, free: 328 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000984/0.008556, allocations: 0.8657 MB / 278.4 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003981/0.008954, allocations: 232.1 kB / 278.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.009075, allocations: 44 kB / 278.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.013e-05/0.009155, allocations: 44 kB / 278.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.009332, allocations: 160 kB / 278.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.009522, allocations: 151.5 kB / 279 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007742/0.0103, allocations: 0.7162 MB / 279.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.0103, allocations: 0 / 279.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.0103, allocations: 4 kB / 279.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.01032, allocations: 0 / 279.8 MB, free: 14.11 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.001126/0.01144, allocations: 0.7288 MB / 280.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.01148, allocations: 8.031 kB / 280.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.01165, allocations: 64.89 kB / 280.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.01205, allocations: 256.7 kB / 280.8 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.953e-05/0.01209, allocations: 25.03 kB / 280.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003482/0.01244, allocations: 40.38 kB / 280.9 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.01303, allocations: 366.4 kB / 281.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.01304, allocations: 192 / 281.2 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.289e-05/0.01309, allocations: 16.38 kB / 281.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.01311, allocations: 11.94 kB / 281.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.01343, allocations: 171.8 kB / 281.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.01484, allocations: 0.6912 MB / 282.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004856/0.01533, allocations: 273.3 kB / 282.4 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.01544, allocations: 120.8 kB / 282.5 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.537e-05/0.01548, allocations: 12.22 kB / 282.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.01574, allocations: 267.2 kB / 282.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.484e-06/0.01574, allocations: 0 / 282.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0004764/0.01621, allocations: 424.1 kB / 283.2 MB, free: 10.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.01626, allocations: 114.8 kB / 283.3 MB, free: 10.33 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.01643, allocations: 264.8 kB / 283.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.017e-05/0.01647, allocations: 33.7 kB / 283.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.383e-05/0.01655, allocations: 165 kB / 283.8 MB, free: 9.859 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.621e-05/0.01661, allocations: 87.34 kB / 283.8 MB, free: 9.773 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.01676, allocations: 130 kB / 284 MB, free: 9.641 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.01684, allocations: 346.7 kB / 284.3 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.01695, allocations: 116.4 kB / 284.4 MB, free: 9.168 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.01709, allocations: 168.6 kB / 284.6 MB, free: 8.973 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.01736, allocations: 305.6 kB / 284.9 MB, free: 8.633 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.01736, allocations: 4 kB / 284.9 MB, free: 8.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003476/0.01771, allocations: 351.4 kB / 285.2 MB, free: 8.258 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.01775, allocations: 63.41 kB / 285.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.01775, allocations: 3.938 kB / 285.3 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.01777, allocations: 4 kB / 285.3 MB, free: 8.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.01788, allocations: 51.81 kB / 285.4 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.01789, allocations: 8.031 kB / 285.4 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.01801, allocations: 31.88 kB / 285.4 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001715/0.01818, allocations: 255.7 kB / 285.6 MB, free: 7.836 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.0001658/0.01834, allocations: 220 kB / 285.9 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.709e-05/0.0184, allocations: 43.91 kB / 285.9 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.882e-05/0.01844, allocations: 26.97 kB / 285.9 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.01844, allocations: 7.984 kB / 285.9 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.01845, allocations: 0 / 285.9 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.01845, allocations: 4 kB / 285.9 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.01868, allocations: 205.6 kB / 286.1 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.01868, allocations: 0 / 286.1 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.187e-05/0.01876, allocations: 43.88 kB / 286.2 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.01877, allocations: 7.984 kB / 286.2 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.0188, allocations: 23.91 kB / 286.2 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.01881, allocations: 0 / 286.2 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01881, allocations: 4 kB / 286.2 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003223/0.01913, allocations: 343.5 kB / 286.6 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.01925, allocations: 95.72 kB / 286.6 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/0.0193, allocations: 19.94 kB / 286.7 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.926e-05/0.01938, allocations: 19.98 kB / 286.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.01951, allocations: 55.91 kB / 286.7 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001595/0.01967, allocations: 259.7 kB / 287 MB, free: 6.398 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.849e-05/0.01973, allocations: 78.77 kB / 287.1 MB, free: 6.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01973, allocations: 0 / 287.1 MB, free: 6.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002265/0.01995, allocations: 99.84 kB / 287.2 MB, free: 6.223 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.0001361/0.02009, allocations: 123.7 kB / 287.3 MB, free: 6.094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003745/0.02046, allocations: 429 kB / 287.7 MB, free: 5.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.02047, allocations: 0 / 287.7 MB, free: 5.625 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.02068, allocations: 293.5 kB / 288 MB, free: 5.297 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005966/0.02127, allocations: 354.8 kB / 288.3 MB, free: 4.977 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006943/0.02197, allocations: 0.6492 MB / 289 MB, free: 4.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.457e-05/0.02202, allocations: 101.1 kB / 289.1 MB, free: 4.164 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0009047/0.02293, allocations: 0.7237 MB / 289.8 MB, free: 3.438 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007113/0.02364, allocations: 416.6 kB / 290.2 MB, free: 3.027 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02364, allocations: 0 / 290.2 MB, free: 3.027 MB / 266.7 MB Notification: Performance of Templates: time 0.01198/0.03561, allocations: 11.93 MB / 302.1 MB, free: 7.09 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 -s gbode -gbm=radauIIA3 -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: 2.7226414741016924]