Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 84.66 kB / 20.95 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002334/0.002334, allocations: 149.1 kB / 24.25 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 173.3 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.531e-05/3.692e-05, allocations: 2.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003555/0.003592, allocations: 1.983 MB / 269.3 MB, free: 4.711 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002742/0.006334, allocations: 1.083 MB / 270.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.006441, allocations: 7.938 kB / 270.4 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.006648, allocations: 51.56 kB / 270.4 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001355/0.006783, allocations: 43.59 kB / 270.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.007371, allocations: 179.7 kB / 270.7 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005965/0.007967, allocations: 475.5 kB / 271.1 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.008238, allocations: 113.3 kB / 271.2 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.009412, allocations: 0.9125 MB / 272.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003761/0.009788, allocations: 235.3 kB / 272.4 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.009899, allocations: 48 kB / 272.4 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.698e-05/0.009996, allocations: 40 kB / 272.5 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.01024, allocations: 159.4 kB / 272.6 MB, free: 1.379 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002363/0.01048, allocations: 143.5 kB / 272.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.01158, allocations: 0.954 MB / 273.7 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.01158, allocations: 0 / 273.7 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.01159, allocations: 0 / 273.7 MB, free: 288 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.01159, allocations: 0 / 273.7 MB, free: 288 kB / 250.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.00144/0.01303, allocations: 0.8122 MB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.01307, allocations: 12.92 kB / 274.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.01332, allocations: 80.66 kB / 274.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005281/0.01385, allocations: 300.5 kB / 274.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.01389, allocations: 28.97 kB / 274.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.461e-05/0.01399, allocations: 32.38 kB / 275 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.01507, allocations: 0.5368 MB / 275.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.01508, allocations: 192 / 275.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.048e-05/0.01516, allocations: 16.38 kB / 275.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.01518, allocations: 11.94 kB / 275.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.0163, allocations: 441.8 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.01834, allocations: 0.9536 MB / 276.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.01958, allocations: 487.7 kB / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004544/0.02003, allocations: 228.7 kB / 277.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.847e-05/0.02009, allocations: 8.281 kB / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007586/0.02085, allocations: 402.5 kB / 278 MB, free: 11.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.814e-06/0.02085, allocations: 3.938 kB / 278 MB, free: 11.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001837/0.02269, allocations: 0.8586 MB / 278.9 MB, free: 10.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.02279, allocations: 118.8 kB / 279 MB, free: 10.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.0232, allocations: 301.7 kB / 279.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.037e-05/0.02328, allocations: 37.7 kB / 279.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.02346, allocations: 188.9 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.0236, allocations: 91.34 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003201/0.02392, allocations: 186.1 kB / 279.8 MB, free: 9.918 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000208/0.02413, allocations: 338.8 kB / 280.1 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004827/0.02461, allocations: 244.3 kB / 280.4 MB, free: 9.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005334/0.02514, allocations: 296.5 kB / 280.6 MB, free: 9.012 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.02617, allocations: 0.5223 MB / 281.2 MB, free: 8.449 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.02617, allocations: 3.938 kB / 281.2 MB, free: 8.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00146/0.02763, allocations: 0.7296 MB / 281.9 MB, free: 7.688 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.309e-05/0.02771, allocations: 67.38 kB / 282 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.02771, allocations: 4 kB / 282 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.444e-05/0.02774, allocations: 4 kB / 282 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.02792, allocations: 59.89 kB / 282 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.02793, allocations: 4 kB / 282 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.02816, allocations: 27.94 kB / 282.1 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003338/0.02849, allocations: 283.7 kB / 282.3 MB, free: 7.234 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.0004361/0.02893, allocations: 293 kB / 282.6 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004127/0.02934, allocations: 47.81 kB / 282.7 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.416e-05/0.02942, allocations: 34.95 kB / 282.7 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.02943, allocations: 4 kB / 282.7 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.02943, allocations: 0 / 282.7 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.02944, allocations: 0 / 282.7 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005716/0.03001, allocations: 357 kB / 283.1 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.03002, allocations: 11.88 kB / 283.1 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.03014, allocations: 51.97 kB / 283.1 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.03014, allocations: 8 kB / 283.1 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.473e-05/0.03023, allocations: 47.97 kB / 283.2 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.03023, allocations: 0 / 283.2 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.03023, allocations: 3.938 kB / 283.2 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.03159, allocations: 0.6916 MB / 283.9 MB, free: 5.605 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003048/0.03189, allocations: 131.6 kB / 284 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.032, allocations: 20 kB / 284 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.03217, allocations: 15.98 kB / 284 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.03244, allocations: 99.89 kB / 284.1 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003346/0.03277, allocations: 275.7 kB / 284.4 MB, free: 5.074 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002606/0.03303, allocations: 205.2 kB / 284.6 MB, free: 4.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03303, allocations: 0 / 284.6 MB, free: 4.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004426/0.03348, allocations: 99.89 kB / 284.7 MB, free: 4.777 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.0002337/0.03371, allocations: 141.8 kB / 284.8 MB, free: 4.629 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.03494, allocations: 0.6576 MB / 285.5 MB, free: 3.922 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.03494, allocations: 0 / 285.5 MB, free: 3.922 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006538/0.0356, allocations: 410 kB / 285.9 MB, free: 3.484 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.03699, allocations: 385.8 kB / 286.3 MB, free: 3.137 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.0385, allocations: 0.7793 MB / 287.1 MB, free: 2.316 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.03877, allocations: 200.3 kB / 287.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.001595/0.04036, allocations: 0.7549 MB / 288 MB, free: 1.336 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008268/0.04119, allocations: 271.9 kB / 288.3 MB, free: 1.07 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.04119, allocations: 0 / 288.3 MB, free: 1.07 MB / 266.7 MB Notification: Performance of Templates: time 0.1273/0.1685, allocations: 11.46 MB / 299.7 MB, free: 28.91 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.709716378012672]