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.001632/0.001632, allocations: 107.6 kB / 21.19 MB, free: 0.668 MB / 14.72 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.00204/0.00204, allocations: 207.5 kB / 24.48 MB, free: 3.977 MB / 14.72 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.438/1.438, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002613/0.002613, allocations: 51.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3213, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003406/0.3247, allocations: 1.993 MB / 434.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002587/0.3273, allocations: 1.103 MB / 435.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.3274, allocations: 7.938 kB / 435.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.3276, allocations: 59.5 kB / 435.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.3278, allocations: 43.64 kB / 435.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005305/0.3283, allocations: 171.7 kB / 435.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006062/0.3289, allocations: 471.5 kB / 436.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.3291, allocations: 109.3 kB / 436.3 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.3302, allocations: 0.8383 MB / 437.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003939/0.3306, allocations: 258.9 kB / 437.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.3307, allocations: 44 kB / 437.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.3308, allocations: 40 kB / 437.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.331, allocations: 151.5 kB / 437.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.3312, allocations: 183 kB / 437.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009321/0.3322, allocations: 0.9251 MB / 438.7 MB, free: 356 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3322, allocations: 4 kB / 438.7 MB, free: 352 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3322, allocations: 0 / 438.7 MB, free: 352 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.3322, allocations: 3.938 kB / 438.7 MB, free: 348 kB / 334.1 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.001344/0.3335, allocations: 0.8006 MB / 439.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3336, allocations: 8.031 kB / 439.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.3337, allocations: 52.66 kB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005674/0.3343, allocations: 289.3 kB / 439.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.152e-05/0.3343, allocations: 29.03 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.089e-05/0.3344, allocations: 36.38 kB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009704/0.3354, allocations: 0.5288 MB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3354, allocations: 0 / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.501e-05/0.3355, allocations: 16 kB / 440.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3355, allocations: 8 kB / 440.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008212/0.3363, allocations: 433.7 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.3383, allocations: 0.9458 MB / 441.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.3395, allocations: 479.8 kB / 442.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003933/0.3399, allocations: 228.7 kB / 442.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.941e-05/0.3399, allocations: 4.219 kB / 442.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006963/0.3406, allocations: 394.7 kB / 442.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.705e-06/0.3406, allocations: 0 / 442.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001605/0.3422, allocations: 0.8358 MB / 443.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.3423, allocations: 114.8 kB / 443.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.3427, allocations: 305.7 kB / 444.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.863e-05/0.3428, allocations: 41.64 kB / 444.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.3429, allocations: 184.9 kB / 444.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.3431, allocations: 83.42 kB / 444.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/0.3434, allocations: 182 kB / 444.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.3435, allocations: 342.8 kB / 445 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00044/0.344, allocations: 244.1 kB / 445.2 MB, free: 9.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004923/0.3445, allocations: 295.9 kB / 445.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009315/0.3454, allocations: 0.5286 MB / 446 MB, free: 8.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3454, allocations: 0 / 446 MB, free: 8.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001299/0.3467, allocations: 0.6953 MB / 446.7 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.566e-05/0.3468, allocations: 63.39 kB / 446.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3468, allocations: 4 kB / 446.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3468, allocations: 8.031 kB / 446.8 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.347, allocations: 55.91 kB / 446.8 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.347, allocations: 4 kB / 446.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.3472, allocations: 27.88 kB / 446.9 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002912/0.3475, allocations: 283.7 kB / 447.2 MB, free: 7.469 MB / 350.1 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.0003792/0.3478, allocations: 289.1 kB / 447.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-05/0.3479, allocations: 35.75 kB / 447.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.372e-05/0.348, allocations: 38.95 kB / 447.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.348, allocations: 4 kB / 447.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.348, allocations: 0 / 447.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.348, allocations: 3.938 kB / 447.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005104/0.3485, allocations: 353 kB / 447.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3485, allocations: 0 / 447.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.3487, allocations: 47.97 kB / 447.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3487, allocations: 0 / 447.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-05/0.3487, allocations: 51.91 kB / 448 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3487, allocations: 4 kB / 448 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3487, allocations: 0 / 448 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.3499, allocations: 0.6632 MB / 448.6 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.3502, allocations: 119.7 kB / 448.7 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3503, allocations: 19.98 kB / 448.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.3505, allocations: 12 kB / 448.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.3507, allocations: 87.89 kB / 448.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002814/0.351, allocations: 279.7 kB / 449.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000211/0.3512, allocations: 205.2 kB / 449.3 MB, free: 5.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3512, allocations: 0 / 449.3 MB, free: 5.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000412/0.3516, allocations: 99.84 kB / 449.4 MB, free: 5.094 MB / 350.1 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.0001991/0.3518, allocations: 141.8 kB / 449.6 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.3529, allocations: 0.6537 MB / 450.2 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3529, allocations: 0 / 450.2 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006022/0.3535, allocations: 409.8 kB / 450.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.3548, allocations: 342.8 kB / 451 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.3563, allocations: 0.8099 MB / 451.8 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3566, allocations: 204.2 kB / 452 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.3576, allocations: 366.5 kB / 452.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3576, allocations: 0 / 452.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01243/0.37, allocations: 8.327 MB / 460.7 MB, free: 9.395 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.031259910203516]