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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,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=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 108.4 kB / 18.34 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 190.9 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 47.94 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1151, allocations: 46.64 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003542/0.1187, allocations: 2.136 MB / 330.9 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.1215, allocations: 1.158 MB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1217, allocations: 8 kB / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002131/0.1219, allocations: 43.58 kB / 332.1 MB, free: 396 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.122, allocations: 47.58 kB / 332.1 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005882/0.1226, allocations: 167.8 kB / 332.3 MB, free: 180 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005595/0.1232, allocations: 463.7 kB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/0.1235, allocations: 156.9 kB / 332.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008313/0.1243, allocations: 0.842 MB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.1247, allocations: 247 kB / 334 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.574e-05/0.1248, allocations: 44 kB / 334 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.298e-05/0.1249, allocations: 44 kB / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.1251, allocations: 151.5 kB / 334.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002414/0.1253, allocations: 214.8 kB / 334.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000758/0.1261, allocations: 0.9345 MB / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1261, allocations: 0 / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1261, allocations: 0 / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1261, allocations: 0 / 335.3 MB, free: 13.1 MB / 286.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.001222/0.1274, allocations: 0.8723 MB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1274, allocations: 8.031 kB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.1275, allocations: 44.47 kB / 336.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005636/0.1281, allocations: 351.4 kB / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.1281, allocations: 29.03 kB / 336.6 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.589e-05/0.1282, allocations: 36.38 kB / 336.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008482/0.1291, allocations: 490.1 kB / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.1291, allocations: 0 / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.747e-05/0.1292, allocations: 12 kB / 337.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.1292, allocations: 8 kB / 337.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007604/0.13, allocations: 382.3 kB / 337.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.132, allocations: 1.112 MB / 338.7 MB, free: 9.625 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.1331, allocations: 439.5 kB / 339.1 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.1334, allocations: 185.2 kB / 339.3 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.766e-05/0.1335, allocations: 4.281 kB / 339.3 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006117/0.1341, allocations: 351.1 kB / 339.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 2.044e-06/0.1342, allocations: 0 / 339.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001398/0.1356, allocations: 0.7198 MB / 340.3 MB, free: 7.906 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.1356, allocations: 110.8 kB / 340.4 MB, free: 7.773 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.136, allocations: 310.4 kB / 340.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.136, allocations: 41.7 kB / 340.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.1362, allocations: 184.6 kB / 341 MB, free: 7.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.179e-05/0.1363, allocations: 71.08 kB / 341 MB, free: 7.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.1366, allocations: 186 kB / 341.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1367, allocations: 342.7 kB / 341.5 MB, free: 6.629 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003841/0.1371, allocations: 184.7 kB / 341.7 MB, free: 6.449 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004/0.1375, allocations: 244.5 kB / 342 MB, free: 6.195 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007709/0.1383, allocations: 0.5184 MB / 342.5 MB, free: 5.637 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1383, allocations: 0 / 342.5 MB, free: 5.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001077/0.1394, allocations: 0.6487 MB / 343.1 MB, free: 4.969 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.414e-05/0.1394, allocations: 67.39 kB / 343.2 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1395, allocations: 0 / 343.2 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1395, allocations: 4 kB / 343.2 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.1396, allocations: 59.91 kB / 343.3 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.1397, allocations: 0 / 343.3 MB, free: 4.828 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.1399, allocations: 27.83 kB / 343.3 MB, free: 4.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/0.1402, allocations: 283.7 kB / 343.6 MB, free: 4.523 MB / 286.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.0003328/0.1405, allocations: 289.1 kB / 343.9 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.617e-05/0.1406, allocations: 31.62 kB / 343.9 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.891e-05/0.1407, allocations: 42.95 kB / 343.9 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1407, allocations: 0 / 343.9 MB, free: 4.145 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1407, allocations: 8 kB / 343.9 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1407, allocations: 0 / 343.9 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005188/0.1412, allocations: 481.1 kB / 344.4 MB, free: 3.617 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1412, allocations: 0 / 344.4 MB, free: 3.617 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.1413, allocations: 55.91 kB / 344.5 MB, free: 3.562 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1413, allocations: 0 / 344.5 MB, free: 3.562 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.473e-05/0.1414, allocations: 47.97 kB / 344.5 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1414, allocations: 0 / 344.5 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1414, allocations: 0 / 344.5 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.1425, allocations: 0.6091 MB / 345.1 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/0.1428, allocations: 204.6 kB / 345.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.143, allocations: 16 kB / 345.3 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.1432, allocations: 19.98 kB / 345.3 MB, free: 2.621 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002354/0.1434, allocations: 83.92 kB / 345.4 MB, free: 2.539 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003549/0.1438, allocations: 283.6 kB / 345.7 MB, free: 2.262 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.144, allocations: 205.9 kB / 345.9 MB, free: 2.062 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.144, allocations: 4 kB / 345.9 MB, free: 2.059 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004014/0.1444, allocations: 99.84 kB / 346 MB, free: 1.961 MB / 286.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.000207/0.1446, allocations: 137.8 kB / 346.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.1457, allocations: 0.5569 MB / 346.7 MB, free: 1.234 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1457, allocations: 0 / 346.7 MB, free: 1.234 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004984/0.1462, allocations: 358.5 kB / 347 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.1473, allocations: 337.2 kB / 347.4 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.1487, allocations: 0.7039 MB / 348.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.1491, allocations: 0.8072 MB / 348.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001375/0.1505, allocations: 0.751 MB / 349.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/0.1511, allocations: 262.8 kB / 349.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1512, allocations: 0 / 349.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of Templates: time 0.0169/0.1681, allocations: 10.88 MB / 360.8 MB, free: 2.852 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches