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.001737/0.001736, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00216/0.00216, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247.5 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 63.28 kB / 307.6 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.1009, allocations: 50.54 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003768/0.1047, allocations: 2.148 MB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002718/0.1075, allocations: 1.158 MB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.1076, allocations: 8 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.1079, allocations: 43.58 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.1081, allocations: 43.58 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005702/0.1086, allocations: 167.8 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005698/0.1092, allocations: 467.6 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002984/0.1095, allocations: 160.9 kB / 362.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009481/0.1105, allocations: 0.8382 MB / 363.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.1109, allocations: 243 kB / 363.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.111, allocations: 44 kB / 363.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.1111, allocations: 40 kB / 363.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002222/0.1113, allocations: 155.5 kB / 363.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002797/0.1116, allocations: 214.9 kB / 363.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009216/0.1126, allocations: 0.9151 MB / 364.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1126, allocations: 0 / 364.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1126, allocations: 4 kB / 364.8 MB, free: 7.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1126, allocations: 0 / 364.8 MB, free: 7.469 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.001341/0.1139, allocations: 0.8687 MB / 365.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.114, allocations: 8.031 kB / 365.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1141, allocations: 48.38 kB / 365.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/0.1147, allocations: 351.5 kB / 366.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-05/0.1148, allocations: 37.2 kB / 366.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.552e-05/0.1149, allocations: 32.38 kB / 366.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009525/0.1158, allocations: 497.8 kB / 366.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1158, allocations: 3.938 kB / 366.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.846e-05/0.1159, allocations: 12 kB / 366.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1159, allocations: 8 kB / 366.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008383/0.1168, allocations: 374.4 kB / 367 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.1189, allocations: 1.128 MB / 368.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.12, allocations: 443.5 kB / 368.6 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003786/0.1204, allocations: 173.3 kB / 368.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.744e-05/0.1205, allocations: 4.281 kB / 368.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006878/0.1212, allocations: 347.2 kB / 369.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.515e-06/0.1212, allocations: 0 / 369.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001582/0.1228, allocations: 0.7304 MB / 369.8 MB, free: 2.254 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.151e-05/0.1229, allocations: 114.8 kB / 369.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003732/0.1233, allocations: 298.5 kB / 370.2 MB, free: 1.816 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.635e-05/0.1233, allocations: 37.7 kB / 370.2 MB, free: 1.773 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.1235, allocations: 184.7 kB / 370.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.1236, allocations: 90.92 kB / 370.5 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002883/0.1239, allocations: 182 kB / 370.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.1241, allocations: 346.8 kB / 371 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004066/0.1245, allocations: 180.8 kB / 371.2 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.125, allocations: 232.5 kB / 371.4 MB, free: 0.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1699/0.2949, allocations: 0.5117 MB / 371.9 MB, free: 19.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.295, allocations: 0.875 kB / 371.9 MB, free: 19.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00158/0.2966, allocations: 0.6499 MB / 372.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.82e-05/0.2966, allocations: 64.06 kB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.2967, allocations: 1.312 kB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/0.2967, allocations: 2.594 kB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.2969, allocations: 64.14 kB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.2969, allocations: 5.375 kB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.2971, allocations: 27.97 kB / 372.8 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003323/0.2975, allocations: 282 kB / 373 MB, free: 19.64 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.0003791/0.2979, allocations: 288.1 kB / 373.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.417e-05/0.298, allocations: 31.16 kB / 373.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.366e-05/0.298, allocations: 39.3 kB / 373.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.2981, allocations: 7.016 kB / 373.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.2981, allocations: 7.406 kB / 373.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.2981, allocations: 1.922 kB / 373.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005699/0.2987, allocations: 480.1 kB / 373.9 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2987, allocations: 0 / 373.9 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.2988, allocations: 47.61 kB / 373.9 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.2988, allocations: 3.281 kB / 373.9 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.16e-05/0.2989, allocations: 50.11 kB / 374 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.2989, allocations: 6.484 kB / 374 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2989, allocations: 3.5 kB / 374 MB, free: 19.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.3001, allocations: 0.5962 MB / 374.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.3004, allocations: 199.3 kB / 374.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.3005, allocations: 14.31 kB / 374.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.3007, allocations: 21.44 kB / 374.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002428/0.3009, allocations: 89.34 kB / 374.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003003/0.3012, allocations: 275.2 kB / 375.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.3015, allocations: 203.2 kB / 375.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3015, allocations: 0 / 375.4 MB, free: 18.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000484/0.302, allocations: 106.5 kB / 375.5 MB, free: 18.95 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.0001931/0.3022, allocations: 136.1 kB / 375.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.3033, allocations: 0.5951 MB / 376.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3034, allocations: 4 kB / 376.2 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005141/0.3039, allocations: 352.2 kB / 376.5 MB, free: 18.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.3052, allocations: 339.6 kB / 376.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.3067, allocations: 0.7533 MB / 377.6 MB, free: 18.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.307, allocations: 0.8086 MB / 378.4 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.3081, allocations: 365.9 kB / 378.8 MB, free: 17.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3081, allocations: 0 / 378.8 MB, free: 17.13 MB / 302.1 MB Notification: Performance of Templates: time 0.01314/0.3212, allocations: 8.299 MB / 387.1 MB, free: 14.55 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.1.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