Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008618/0.0008618, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.001027/0.001027, allocations: 161.4 kB / 25.45 MB, free: 9.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8715/0.8715, allocations: 158.6 MB / 187.2 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 299.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.903e-05/2.043e-05, allocations: 2.281 kB / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.001983/0.002004, allocations: 1.965 MB / 301.7 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.003575, allocations: 1.116 MB / 302.8 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.988e-05/0.003655, allocations: 7.938 kB / 302.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.00381, allocations: 43.58 kB / 302.8 MB, free: 3.773 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.95e-05/0.00389, allocations: 47.58 kB / 302.9 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.004279, allocations: 183.6 kB / 303.1 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003394/0.004618, allocations: 475.5 kB / 303.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.004797, allocations: 109.3 kB / 303.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005979/0.005394, allocations: 0.9203 MB / 304.5 MB, free: 2.055 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.005597, allocations: 235.3 kB / 304.8 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.00566, allocations: 44 kB / 304.8 MB, free: 1.781 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.745e-05/0.005708, allocations: 40 kB / 304.9 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.005827, allocations: 155.4 kB / 305 MB, free: 1.59 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.00595, allocations: 143.5 kB / 305.1 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009589/0.006909, allocations: 0.9618 MB / 306.1 MB, free: 496 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.006913, allocations: 0 / 306.1 MB, free: 496 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.006914, allocations: 0 / 306.1 MB, free: 496 kB / 282.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.006921, allocations: 7.938 kB / 306.1 MB, free: 488 kB / 282.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.001016/0.007937, allocations: 0.8084 MB / 306.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.007992, allocations: 15.98 kB / 306.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.008095, allocations: 52.59 kB / 307 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.008487, allocations: 292.5 kB / 307.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.008523, allocations: 29.03 kB / 307.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.641e-05/0.00858, allocations: 32.38 kB / 307.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006657/0.009245, allocations: 0.5368 MB / 307.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.009258, allocations: 192 / 307.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.009301, allocations: 24.31 kB / 307.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.009313, allocations: 11.94 kB / 307.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004962/0.00981, allocations: 437.8 kB / 308.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.01096, allocations: 0.9537 MB / 309.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006715/0.01163, allocations: 490.5 kB / 309.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.01185, allocations: 224.7 kB / 310 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.01189, allocations: 4.281 kB / 310 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004406/0.01233, allocations: 410.6 kB / 310.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 1.713e-06/0.01234, allocations: 0 / 310.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001002/0.01334, allocations: 0.8429 MB / 311.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.01339, allocations: 110.8 kB / 311.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/0.01361, allocations: 313.7 kB / 311.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.01365, allocations: 37.7 kB / 311.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.01377, allocations: 184.9 kB / 311.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.331e-05/0.01384, allocations: 83.41 kB / 312 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.01403, allocations: 190.1 kB / 312.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003849/0.01441, allocations: 338.8 kB / 312.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/0.01465, allocations: 244.3 kB / 312.7 MB, free: 9.578 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.0149, allocations: 300.6 kB / 313 MB, free: 9.262 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.01537, allocations: 0.53 MB / 313.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.01538, allocations: 3.938 kB / 313.5 MB, free: 8.688 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006447/0.01602, allocations: 0.707 MB / 314.2 MB, free: 7.949 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.177e-05/0.01606, allocations: 63.39 kB / 314.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.01607, allocations: 0 / 314.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.01609, allocations: 4 kB / 314.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.479e-05/0.01619, allocations: 59.91 kB / 314.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.01619, allocations: 4 kB / 314.4 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.87e-05/0.01629, allocations: 35.88 kB / 314.4 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/0.01646, allocations: 279.7 kB / 314.7 MB, free: 7.5 MB / 298.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.0002209/0.01668, allocations: 297 kB / 315 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.01672, allocations: 35.81 kB / 315 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.66e-05/0.01677, allocations: 34.95 kB / 315 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.01677, allocations: 4 kB / 315 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.01678, allocations: 0 / 315 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.01679, allocations: 11.86 kB / 315.1 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.01706, allocations: 357 kB / 315.4 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.01706, allocations: 3.938 kB / 315.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.422e-05/0.01712, allocations: 55.91 kB / 315.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.01712, allocations: 0 / 315.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.999e-05/0.01716, allocations: 51.97 kB / 315.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01716, allocations: 0 / 315.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.01716, allocations: 0 / 315.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006068/0.01777, allocations: 0.6721 MB / 316.2 MB, free: 5.902 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.01792, allocations: 131.6 kB / 316.3 MB, free: 5.773 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.01797, allocations: 20 kB / 316.3 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.01e-05/0.01804, allocations: 16 kB / 316.3 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.01819, allocations: 91.89 kB / 316.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/0.01834, allocations: 279.7 kB / 316.7 MB, free: 5.375 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.01847, allocations: 201.2 kB / 316.9 MB, free: 5.176 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01847, allocations: 0 / 316.9 MB, free: 5.176 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002361/0.0187, allocations: 103.8 kB / 317 MB, free: 5.074 MB / 298.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.0001309/0.01883, allocations: 141.8 kB / 317.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006167/0.01945, allocations: 0.6534 MB / 317.8 MB, free: 4.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01945, allocations: 0 / 317.8 MB, free: 4.223 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.01976, allocations: 409.9 kB / 318.2 MB, free: 3.785 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006844/0.02044, allocations: 342 kB / 318.5 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.02162, allocations: 0.8132 MB / 319.3 MB, free: 2.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.02175, allocations: 196.3 kB / 319.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006629/0.02241, allocations: 375.6 kB / 319.9 MB, free: 2.012 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02241, allocations: 0 / 319.9 MB, free: 2.012 MB / 298.7 MB Notification: Performance of Templates: time 0.006541/0.02895, allocations: 8.325 MB / 328.2 MB, free: 9.352 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.948698888532817]