Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001025, allocations: 101.9 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 206.9 kB / 18.94 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.7 MB / 247.4 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002694, allocations: 8 kB / 308.4 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09515/0.09544, allocations: 51.53 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002394/0.09789, allocations: 1.833 MB / 361.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.1003, allocations: 1.13 MB / 362.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.1005, allocations: 7.938 kB / 362.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.1008, allocations: 31.77 kB / 362.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.101, allocations: 35.7 kB / 362.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.1016, allocations: 147.9 kB / 363.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005514/0.1021, allocations: 419.6 kB / 363.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.1025, allocations: 152.9 kB / 363.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009015/0.1034, allocations: 0.7952 MB / 364.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.1037, allocations: 207.1 kB / 364.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.1039, allocations: 15.98 kB / 364.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.581e-05/0.1039, allocations: 8 kB / 364.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.1041, allocations: 115.5 kB / 364.8 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002586/0.1044, allocations: 200.5 kB / 365 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006401/0.105, allocations: 0.7753 MB / 365.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1051, allocations: 7.938 kB / 365.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1051, allocations: 3.938 kB / 365.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.1051, allocations: 0 / 365.8 MB, free: 7.188 MB / 302.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.001355/0.1064, allocations: 0.7206 MB / 366.5 MB, free: 6.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.1065, allocations: 8.031 kB / 366.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.1067, allocations: 48.41 kB / 366.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005348/0.1073, allocations: 355.4 kB / 366.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.825e-05/0.1074, allocations: 29.22 kB / 366.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.1075, allocations: 36.38 kB / 366.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009745/0.1085, allocations: 497.9 kB / 367.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1085, allocations: 0 / 367.4 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.578e-05/0.1086, allocations: 15.98 kB / 367.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.1086, allocations: 12 kB / 367.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008307/0.1094, allocations: 382.4 kB / 367.8 MB, free: 5.008 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.1114, allocations: 1.112 MB / 368.9 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.1125, allocations: 471.5 kB / 369.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.1129, allocations: 182.2 kB / 369.6 MB, free: 3.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.24e-05/0.1129, allocations: 4.281 kB / 369.6 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005855/0.1135, allocations: 351.1 kB / 369.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.475e-06/0.1135, allocations: 4 kB / 369.9 MB, free: 2.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001441/0.115, allocations: 0.7383 MB / 370.7 MB, free: 2.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.1151, allocations: 122.8 kB / 370.8 MB, free: 1.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.1154, allocations: 298.4 kB / 371.1 MB, free: 1.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.782e-05/0.1155, allocations: 41.7 kB / 371.1 MB, free: 1.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.1156, allocations: 180.7 kB / 371.3 MB, free: 1.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.1158, allocations: 90.92 kB / 371.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.1159, allocations: 65.69 kB / 371.5 MB, free: 1.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.116, allocations: 346.7 kB / 371.8 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003904/0.1164, allocations: 184.8 kB / 372 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.1168, allocations: 236.5 kB / 372.2 MB, free: 476 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1708/0.2876, allocations: 0.5397 MB / 372.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.2877, allocations: 3.094 kB / 372.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001597/0.2893, allocations: 0.6457 MB / 373.4 MB, free: 18.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.2893, allocations: 69.17 kB / 373.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.2894, allocations: 1.969 kB / 373.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/0.2894, allocations: 3.531 kB / 373.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.2896, allocations: 54.67 kB / 373.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2896, allocations: 3.344 kB / 373.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.29, allocations: 53.38 kB / 373.6 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003418/0.2903, allocations: 281.9 kB / 373.9 MB, free: 18.47 MB / 302.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.0004399/0.2908, allocations: 301.7 kB / 374.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.2909, allocations: 36.53 kB / 374.2 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.008e-05/0.291, allocations: 35.52 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.291, allocations: 8.672 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.291, allocations: 1.562 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.291, allocations: 1.406 kB / 374.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007196/0.2918, allocations: 476.5 kB / 374.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.2918, allocations: 1.188 kB / 374.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.2919, allocations: 53.58 kB / 374.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.2919, allocations: 1.875 kB / 374.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.2921, allocations: 47.58 kB / 374.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.2921, allocations: 3.5 kB / 374.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2921, allocations: 0 / 374.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.2934, allocations: 0.6159 MB / 375.4 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002833/0.2937, allocations: 196.4 kB / 375.6 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.2938, allocations: 15.91 kB / 375.6 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.2941, allocations: 41.53 kB / 375.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.2943, allocations: 83.28 kB / 375.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/0.2946, allocations: 282 kB / 376 MB, free: 17.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002296/0.2949, allocations: 200.7 kB / 376.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2949, allocations: 0 / 376.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005228/0.2954, allocations: 101.3 kB / 376.3 MB, free: 17.77 MB / 302.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.0002229/0.2956, allocations: 141.9 kB / 376.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.2967, allocations: 0.5641 MB / 377 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.2968, allocations: 3.906 kB / 377 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005491/0.2973, allocations: 363.6 kB / 377.4 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.2987, allocations: 311.7 kB / 377.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.3001, allocations: 0.8739 MB / 378.6 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.3004, allocations: 0.8088 MB / 379.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/0.3014, allocations: 360.5 kB / 379.7 MB, free: 16.08 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3014, allocations: 0 / 379.7 MB, free: 16.08 MB / 302.1 MB Notification: Performance of Templates: time 0.01273/0.3142, allocations: 8.257 MB / 388 MB, free: 13.57 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches