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.001002/0.001002, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001851/0.001851, allocations: 172.7 kB / 24.82 MB, free: 9.262 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 1.015/1.015, allocations: 177.1 MB / 205.3 MB, free: 5.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 2.104e-06/2.104e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.58e-05/2.79e-05, allocations: 10.25 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002363/0.002391, allocations: 2.034 MB / 275.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.004159, allocations: 1.111 MB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.004303, allocations: 3.938 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.004455, allocations: 51.52 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.004559, allocations: 47.64 kB / 276.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.005027, allocations: 187.6 kB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.005494, allocations: 471.6 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.005677, allocations: 114.1 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007187/0.006395, allocations: 0.9164 MB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002674/0.006663, allocations: 231.3 kB / 278.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-05/0.006734, allocations: 44 kB / 278.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.382e-05/0.006808, allocations: 40 kB / 278.6 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.006923, allocations: 159.4 kB / 278.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.007037, allocations: 139.5 kB / 278.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005073/0.007544, allocations: 0.7279 MB / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.007547, allocations: 0 / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.007548, allocations: 0 / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.007556, allocations: 0 / 279.6 MB, free: 11.02 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.0008527/0.008409, allocations: 0.9199 MB / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.008442, allocations: 8.031 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.00856, allocations: 80.66 kB / 280.6 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.008846, allocations: 283.4 kB / 280.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.008877, allocations: 25.03 kB / 280.9 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.471e-05/0.008932, allocations: 36.38 kB / 281 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004433/0.009375, allocations: 422.4 kB / 281.4 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.009384, allocations: 192 / 281.4 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.009419, allocations: 16.38 kB / 281.4 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.009427, allocations: 11.94 kB / 281.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.00968, allocations: 239.9 kB / 281.7 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009892/0.01067, allocations: 0.9026 MB / 282.6 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.01111, allocations: 331.5 kB / 282.9 MB, free: 7.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.01126, allocations: 163.6 kB / 283 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.01129, allocations: 12.22 kB / 283.1 MB, free: 7.422 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002591/0.01155, allocations: 320.8 kB / 283.4 MB, free: 7.082 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.313e-06/0.01155, allocations: 4 kB / 283.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0006607/0.01221, allocations: 0.6484 MB / 284 MB, free: 6.387 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.01226, allocations: 106.8 kB / 284.1 MB, free: 6.258 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.01246, allocations: 340 kB / 284.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.01249, allocations: 37.7 kB / 284.5 MB, free: 5.867 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.0126, allocations: 227.6 kB / 284.7 MB, free: 5.641 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.745e-05/0.01267, allocations: 87.39 kB / 284.8 MB, free: 5.555 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/0.01286, allocations: 203.7 kB / 285 MB, free: 5.348 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.013, allocations: 0.5079 MB / 285.5 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.01315, allocations: 152.3 kB / 285.7 MB, free: 4.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.01333, allocations: 222.7 kB / 285.9 MB, free: 4.414 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.01365, allocations: 380.2 kB / 286.2 MB, free: 4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.01365, allocations: 0 / 286.2 MB, free: 4 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005428/0.0142, allocations: 0.5545 MB / 286.8 MB, free: 3.414 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.031e-05/0.01424, allocations: 59.39 kB / 286.9 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.01424, allocations: 4 kB / 286.9 MB, free: 3.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.01426, allocations: 4 kB / 286.9 MB, free: 3.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.532e-05/0.01434, allocations: 63.84 kB / 286.9 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.506e-06/0.01434, allocations: 8.031 kB / 286.9 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.01445, allocations: 31.88 kB / 287 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/0.01463, allocations: 275.7 kB / 287.2 MB, free: 2.965 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.0001888/0.01482, allocations: 263.9 kB / 287.5 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.37e-05/0.0149, allocations: 51.75 kB / 287.5 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.356e-05/0.01494, allocations: 42.95 kB / 287.6 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.01494, allocations: 0 / 287.6 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.01494, allocations: 4 kB / 287.6 MB, free: 2.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.01495, allocations: 3.984 kB / 287.6 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.01523, allocations: 288.9 kB / 287.9 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.01523, allocations: 0 / 287.9 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.718e-05/0.01529, allocations: 51.91 kB / 287.9 MB, free: 2.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.01529, allocations: 4 kB / 287.9 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.374e-05/0.01534, allocations: 51.91 kB / 288 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.01534, allocations: 0 / 288 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01534, allocations: 0 / 288 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005349/0.01587, allocations: 0.5533 MB / 288.5 MB, free: 1.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.01603, allocations: 119.7 kB / 288.7 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.212e-05/0.01608, allocations: 15.94 kB / 288.7 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.725e-05/0.01616, allocations: 19.98 kB / 288.7 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.01629, allocations: 87.91 kB / 288.8 MB, free: 1.332 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/0.01646, allocations: 287.7 kB / 289.1 MB, free: 1.051 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.649e-05/0.01655, allocations: 197.1 kB / 289.2 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01655, allocations: 0 / 289.2 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002768/0.01683, allocations: 103.8 kB / 289.3 MB, free: 0.7578 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.0001329/0.01696, allocations: 141.8 kB / 289.5 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004194/0.01738, allocations: 0.511 MB / 290 MB, free: 48 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.01739, allocations: 7.938 kB / 290 MB, free: 40 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/0.01765, allocations: 345.5 kB / 290.3 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006745/0.01832, allocations: 377.8 kB / 290.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009406/0.01926, allocations: 0.6754 MB / 291.4 MB, free: 14.6 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.237e-05/0.01932, allocations: 101.1 kB / 291.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0009609/0.02028, allocations: 0.7237 MB / 292.2 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008244/0.02111, allocations: 453.5 kB / 292.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of SimCode: time 1.322e-06/0.02111, allocations: 0 / 292.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of Templates: time 0.01268/0.03379, allocations: 12.17 MB / 304.8 MB, free: 1.117 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 -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: 3.0744235408492386]