Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00298/0.00298, allocations: 181.3 kB / 17.41 MB, free: 4.281 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.482/3.482, allocations: 205.4 MB / 223.6 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 85.03 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005388/0.000539, allocations: 16 kB / 328.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5683/0.5689, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1975/0.7665, allocations: 82.61 MB / 458.3 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00037/0.767, allocations: 71.97 kB / 458.4 MB, free: 13.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1487/0.9156, allocations: 42.61 MB / 0.4893 GB, free: 3.379 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.9157, allocations: 0 / 0.4893 GB, free: 3.379 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.879e-05/0.9158, allocations: 15.94 kB / 0.4893 GB, free: 3.363 MB / 378.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.001705/0.9175, allocations: 0.7213 MB / 0.49 GB, free: 2.574 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.9176, allocations: 8.031 kB / 0.49 GB, free: 2.566 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002027/0.9178, allocations: 52.38 kB / 0.49 GB, free: 2.516 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008227/0.9186, allocations: 352.2 kB / 0.4904 GB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.838e-05/0.9187, allocations: 29.03 kB / 0.4904 GB, free: 2.105 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.9188, allocations: 36.36 kB / 0.4904 GB, free: 2.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.9203, allocations: 494.3 kB / 0.4909 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.9204, allocations: 192 / 0.4909 GB, free: 1.578 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.9205, allocations: 19.94 kB / 0.4909 GB, free: 1.559 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.9205, allocations: 12 kB / 0.4909 GB, free: 1.547 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.9218, allocations: 394.3 kB / 0.4913 GB, free: 1.164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003219/0.925, allocations: 1.07 MB / 0.4924 GB, free: 40 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5223/1.447, allocations: 454.3 kB / 0.4928 GB, free: 103.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/1.449, allocations: 179.9 kB / 0.493 GB, free: 103.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002078/1.449, allocations: 7.562 kB / 0.493 GB, free: 103.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001934/1.451, allocations: 347.5 kB / 0.4933 GB, free: 103.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 9.998e-06/1.451, allocations: 0 / 0.4933 GB, free: 103.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.007459/1.458, allocations: 0.7189 MB / 0.494 GB, free: 103.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001945/1.459, allocations: 112.5 kB / 0.4941 GB, free: 103.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/1.46, allocations: 309.5 kB / 0.4944 GB, free: 103.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002445/1.46, allocations: 39.42 kB / 0.4944 GB, free: 103.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003062/1.46, allocations: 170.1 kB / 0.4946 GB, free: 103.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003209/1.461, allocations: 79.73 kB / 0.4947 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/1.461, allocations: 11.25 kB / 0.4947 GB, free: 103.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002208/1.461, allocations: 342 kB / 0.495 GB, free: 102.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008577/1.462, allocations: 178.4 kB / 0.4952 GB, free: 102.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008757/1.463, allocations: 242.4 kB / 0.4954 GB, free: 102.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/1.465, allocations: 0.5093 MB / 0.4959 GB, free: 102.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.298e-06/1.465, allocations: 0 / 0.4959 GB, free: 102.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002485/1.467, allocations: 0.6398 MB / 0.4965 GB, free: 102.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001314/1.467, allocations: 66.03 kB / 0.4966 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/1.467, allocations: 1.25 kB / 0.4966 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.844e-05/1.468, allocations: 2.656 kB / 0.4966 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/1.468, allocations: 61.16 kB / 0.4967 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.537e-05/1.468, allocations: 6.531 kB / 0.4967 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006729/1.469, allocations: 55.61 kB / 0.4967 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007238/1.469, allocations: 278.6 kB / 0.497 GB, free: 102.5 MB / 378.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,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001003/1.47, allocations: 287.4 kB / 0.4973 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/1.471, allocations: 31.84 kB / 0.4973 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/1.471, allocations: 37.41 kB / 0.4973 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/1.471, allocations: 6.781 kB / 0.4973 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/1.471, allocations: 0 / 0.4973 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/1.471, allocations: 5 kB / 0.4973 GB, free: 102.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/1.472, allocations: 466.6 kB / 0.4978 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/1.472, allocations: 1.938 kB / 0.4978 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/1.472, allocations: 49.75 kB / 0.4978 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.329e-05/1.472, allocations: 4.578 kB / 0.4978 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/1.473, allocations: 48.38 kB / 0.4979 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.096e-05/1.473, allocations: 1.438 kB / 0.4979 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.341e-06/1.473, allocations: 1.156 kB / 0.4979 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/1.475, allocations: 0.6119 MB / 0.4985 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006484/1.475, allocations: 191.5 kB / 0.4987 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/1.476, allocations: 17.19 kB / 0.4987 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005274/1.476, allocations: 37.81 kB / 0.4987 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004604/1.477, allocations: 86.08 kB / 0.4988 GB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006342/1.477, allocations: 278.3 kB / 0.4991 GB, free: 101.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004234/1.478, allocations: 199 kB / 0.4993 GB, free: 101.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.478, allocations: 0 / 0.4993 GB, free: 101.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001137/1.479, allocations: 89.28 kB / 0.4993 GB, free: 101.7 MB / 378.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[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[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.y,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (K.y,J.y,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004847/1.479, allocations: 143.8 kB / 0.4995 GB, free: 101.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002376/1.482, allocations: 0.5574 MB / 0.5 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/1.482, allocations: 0 / 0.5 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005203/1.487, allocations: 350.2 kB / 0.5004 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/1.489, allocations: 289.9 kB / 0.5006 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/1.492, allocations: 0.8316 MB / 0.5015 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006323/1.493, allocations: 0.8107 MB / 0.5022 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002023/1.495, allocations: 365 kB / 0.5026 GB, free: 100 MB / 378.7 MB Notification: Performance of SimCode: time 2.134e-06/1.495, allocations: 0 / 0.5026 GB, free: 100 MB / 378.7 MB Notification: Performance of Templates: time 0.04369/1.539, allocations: 8.201 MB / 0.5106 GB, free: 98.91 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches