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.001655/0.001659, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.117/2.117, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001178/0.001178, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.056e-05/4.106e-05, allocations: 7.984 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4431/0.5544, allocations: 82.48 MB / 451.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.5548, allocations: 63.84 kB / 451.6 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1556/0.7104, allocations: 42.9 MB / 494.5 MB, free: 1.848 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.7105, allocations: 4 kB / 494.5 MB, free: 1.844 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.961e-05/0.7105, allocations: 12 kB / 494.5 MB, free: 1.832 MB / 362.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.001459/0.712, allocations: 0.6818 MB / 495.2 MB, free: 1.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.7121, allocations: 8.031 kB / 495.2 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002501/0.7123, allocations: 51.42 kB / 495.3 MB, free: 1.031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008164/0.7132, allocations: 339.3 kB / 495.6 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.762e-05/0.7132, allocations: 32.73 kB / 495.7 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.7134, allocations: 36 kB / 495.7 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.7148, allocations: 475.4 kB / 496.2 MB, free: 120 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.7148, allocations: 0 / 496.2 MB, free: 120 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.7149, allocations: 16 kB / 496.2 MB, free: 104 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.715, allocations: 8 kB / 496.2 MB, free: 96 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.7161, allocations: 355 kB / 496.5 MB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003142/0.7193, allocations: 1.082 MB / 497.6 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.7209, allocations: 407.6 kB / 498 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.7215, allocations: 153.4 kB / 498.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.7216, allocations: 4.281 kB / 498.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008059/0.7224, allocations: 327.2 kB / 498.5 MB, free: 13.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.166e-06/0.7224, allocations: 3.938 kB / 498.5 MB, free: 13.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.001716/0.7242, allocations: 0.5315 MB / 499 MB, free: 13.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.7243, allocations: 106.8 kB / 499.1 MB, free: 13.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005468/0.7249, allocations: 278.8 kB / 499.4 MB, free: 12.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.7251, allocations: 37.7 kB / 499.4 MB, free: 12.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.7253, allocations: 231.2 kB / 499.6 MB, free: 12.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.7254, allocations: 83 kB / 499.7 MB, free: 12.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.552e-05/0.7255, allocations: 8 kB / 499.7 MB, free: 12.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.7257, allocations: 334.8 kB / 0.4883 GB, free: 12.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005355/0.7263, allocations: 160.8 kB / 0.4885 GB, free: 11.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005672/0.7268, allocations: 216.5 kB / 0.4887 GB, free: 11.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006129/0.7275, allocations: 237.2 kB / 0.4889 GB, free: 11.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.7275, allocations: 0 / 0.4889 GB, free: 11.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001699/0.7292, allocations: 0.5941 MB / 0.4895 GB, free: 10.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.15e-05/0.7293, allocations: 63.39 kB / 0.4896 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.7294, allocations: 0 / 0.4896 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.7294, allocations: 4 kB / 0.4896 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.7297, allocations: 63.94 kB / 0.4896 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.7297, allocations: 3.938 kB / 0.4896 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005805/0.7303, allocations: 51.86 kB / 0.4897 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004212/0.7307, allocations: 275.7 kB / 0.49 GB, free: 10.36 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 () * 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.0003872/0.7311, allocations: 220.2 kB / 0.4902 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.7313, allocations: 31.62 kB / 0.4902 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001416/0.7315, allocations: 39.08 kB / 0.4902 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.7315, allocations: 4 kB / 0.4902 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.7315, allocations: 7.938 kB / 0.4902 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.7315, allocations: 3.984 kB / 0.4902 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009983/0.7325, allocations: 465.3 kB / 0.4907 GB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.7326, allocations: 0 / 0.4907 GB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.7328, allocations: 47.97 kB / 0.4907 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.7328, allocations: 4 kB / 0.4907 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.733, allocations: 47.97 kB / 0.4908 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.046e-05/0.733, allocations: 4 kB / 0.4908 GB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.733, allocations: 3.938 kB / 0.4908 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.7346, allocations: 0.5623 MB / 0.4913 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005029/0.7351, allocations: 196.7 kB / 0.4915 GB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/0.7353, allocations: 16 kB / 0.4915 GB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.7357, allocations: 43.88 kB / 0.4916 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/0.7361, allocations: 83.84 kB / 0.4917 GB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004492/0.7366, allocations: 287.7 kB / 0.4919 GB, free: 8.203 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003522/0.7369, allocations: 195.1 kB / 0.4921 GB, free: 8.008 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.7369, allocations: 0 / 0.4921 GB, free: 8.008 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000695/0.7376, allocations: 92 kB / 0.4922 GB, free: 7.918 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) * 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.000323/0.738, allocations: 141.4 kB / 0.4923 GB, free: 7.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.7394, allocations: 0.5116 MB / 0.4928 GB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.7394, allocations: 0 / 0.4928 GB, free: 7.234 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007749/0.7402, allocations: 334.6 kB / 0.4932 GB, free: 6.879 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/0.7424, allocations: 290.2 kB / 0.4934 GB, free: 6.598 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001975/0.7445, allocations: 0.5753 MB / 0.494 GB, free: 5.996 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005782/0.7451, allocations: 0.815 MB / 0.4948 GB, free: 5.148 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001753/0.7469, allocations: 362.5 kB / 0.4951 GB, free: 4.797 MB / 378.7 MB Notification: Performance of SimCode: time 4.679e-06/0.7469, allocations: 0 / 0.4951 GB, free: 4.797 MB / 378.7 MB Notification: Performance of Templates: time 0.01866/0.7656, allocations: 8.141 MB / 0.5031 GB, free: 12.29 MB / 394.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) "" Variables in the reference:time,FF.RS1.TD1.x,FF.RS2.TD1.x Variables in the result:CLK.period,CLK.startTime,CLK.width,CLK.y,FF.And1.n,FF.And1.x[1],FF.And1.x[2],FF.And1.x[3],FF.And1.y,FF.And2.n,FF.And2.x[1],FF.And2.x[2],FF.And2.x[3],FF.And2.y,FF.And3.n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And4.n,FF.And4.x[1],FF.And4.x[2],FF.And4.y,FF.Not1.x,FF.Not1.y,FF.RS1.Nor1.n,FF.RS1.Nor1.x[1],FF.RS1.Nor1.x[2],FF.RS1.Nor1.y,FF.RS1.Nor2.n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.y,FF.RS1.TD1.delayTime,FF.RS1.TD1.x,FF.RS1.TD1.y,FF.RS1.TD1.y0,FF.RS1.delayTime,FF.RS1.q,FF.RS1.q0,FF.RS1.qn,FF.RS1.r,FF.RS1.s,FF.RS2.Nor1.n,FF.RS2.Nor1.x[1],FF.RS2.Nor1.x[2],FF.RS2.Nor1.y,FF.RS2.Nor2.n,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.y,FF.RS2.TD1.delayTime,FF.RS2.TD1.x,FF.RS2.TD1.y,FF.RS2.TD1.y0,FF.RS2.delayTime,FF.RS2.q,FF.RS2.q0,FF.RS2.qn,FF.RS2.r,FF.RS2.s,FF.clk,FF.delayTime,FF.j,FF.k,FF.q,FF.q0,FF.qn,J.n,J.t[1],J.t[2],J.t[3],J.t[4],J.x[1],J.x[2],J.x[3],J.x[4],J.y,J.y0,K.n,K.t[1],K.t[2],K.t[3],K.t[4],K.x[1],K.x[2],K.x[3],K.x[4],K.y,K.y0,time