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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.225/1.225, allocations: 205.1 MB / 223.7 MB, free: 8.461 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.0008721/0.000872, allocations: 103.7 kB / 271.2 MB, free: 8.418 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007584/0.0007584, allocations: 39.95 kB / 327.2 MB, free: 312 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1963, allocations: 46.62 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002598/0.199, allocations: 2.171 MB / 376 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.2007, allocations: 1.149 MB / 377.1 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.576e-05/0.2008, allocations: 7.188 kB / 377.1 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.2009, allocations: 31.14 kB / 377.2 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.067e-05/0.201, allocations: 29.19 kB / 377.2 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.2014, allocations: 159 kB / 377.4 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.2017, allocations: 419.3 kB / 377.8 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.202, allocations: 159 kB / 377.9 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007012/0.2027, allocations: 0.8127 MB / 378.7 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002496/0.2029, allocations: 236.2 kB / 379 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.851e-05/0.203, allocations: 16.97 kB / 379 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.213e-05/0.2031, allocations: 17.47 kB / 379 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001556/0.2033, allocations: 130.4 kB / 379.1 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.2035, allocations: 197.9 kB / 379.3 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.204, allocations: 0.9048 MB / 380.2 MB, free: 41.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.204, allocations: 0 / 380.2 MB, free: 41.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.204, allocations: 0 / 380.2 MB, free: 41.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.204, allocations: 1.375 kB / 380.2 MB, free: 41.32 MB / 298.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.0009076/0.2049, allocations: 0.8678 MB / 381.1 MB, free: 40.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.205, allocations: 8.969 kB / 381.1 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.2051, allocations: 49.22 kB / 381.2 MB, free: 40.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.2055, allocations: 346 kB / 381.5 MB, free: 40.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.2056, allocations: 28.38 kB / 381.5 MB, free: 40.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-05/0.2056, allocations: 39.7 kB / 381.6 MB, free: 40.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007172/0.2064, allocations: 496.8 kB / 382 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2064, allocations: 0 / 382 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.471e-05/0.2064, allocations: 16.12 kB / 382.1 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.2064, allocations: 8.469 kB / 382.1 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006678/0.2071, allocations: 376.1 kB / 382.4 MB, free: 39.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.2087, allocations: 1.108 MB / 383.5 MB, free: 39.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009426/0.2096, allocations: 444.4 kB / 384 MB, free: 38.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003208/0.21, allocations: 172.9 kB / 384.1 MB, free: 38.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.591e-05/0.21, allocations: 3.594 kB / 384.2 MB, free: 38.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004978/0.2105, allocations: 352.7 kB / 384.5 MB, free: 38.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 1.684e-06/0.2106, allocations: 0 / 384.5 MB, free: 38.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001179/0.2117, allocations: 0.7279 MB / 385.2 MB, free: 37.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.2118, allocations: 114.8 kB / 385.3 MB, free: 37.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.212, allocations: 302.4 kB / 385.6 MB, free: 37.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.2121, allocations: 41.7 kB / 385.7 MB, free: 37.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.2121, allocations: 176.7 kB / 385.8 MB, free: 37.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.695e-05/0.2122, allocations: 83 kB / 385.9 MB, free: 37.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/0.2124, allocations: 186 kB / 386.1 MB, free: 36.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.165e-05/0.2125, allocations: 346.7 kB / 386.4 MB, free: 36.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.2128, allocations: 184.7 kB / 386.6 MB, free: 36.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003102/0.2131, allocations: 240.5 kB / 386.9 MB, free: 36.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000621/0.2137, allocations: 0.5153 MB / 387.4 MB, free: 35.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2138, allocations: 0 / 387.4 MB, free: 35.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008822/0.2146, allocations: 0.6457 MB / 388 MB, free: 34.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.076e-05/0.2147, allocations: 67.39 kB / 388.1 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2147, allocations: 0 / 388.1 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.2147, allocations: 4 kB / 388.1 MB, free: 34.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.2149, allocations: 55.91 kB / 388.1 MB, free: 34.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.2149, allocations: 8.031 kB / 388.2 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.2151, allocations: 51.75 kB / 388.2 MB, free: 34.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/0.2153, allocations: 292.5 kB / 388.5 MB, free: 34.46 MB / 298.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,$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.0002195/0.2155, allocations: 281.1 kB / 388.8 MB, free: 34.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.2156, allocations: 35.62 kB / 388.8 MB, free: 34.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/0.2157, allocations: 34.95 kB / 388.8 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2157, allocations: 4 kB / 388.8 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2157, allocations: 0 / 388.8 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2157, allocations: 3.984 kB / 388.8 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003673/0.2161, allocations: 489.1 kB / 389.3 MB, free: 33.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2161, allocations: 0 / 389.3 MB, free: 33.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.307e-05/0.2162, allocations: 47.91 kB / 389.4 MB, free: 33.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2162, allocations: 0 / 389.4 MB, free: 33.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-05/0.2162, allocations: 47.97 kB / 389.4 MB, free: 33.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2163, allocations: 8 kB / 389.4 MB, free: 33.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2163, allocations: 4 kB / 389.4 MB, free: 33.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.2175, allocations: 1.408 MB / 390.8 MB, free: 31.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/0.2177, allocations: 192.7 kB / 391 MB, free: 31.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.18e-05/0.2178, allocations: 23.94 kB / 391 MB, free: 31.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.218, allocations: 43.81 kB / 391.1 MB, free: 31.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.2182, allocations: 87.84 kB / 391.2 MB, free: 31.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001649/0.2184, allocations: 283.7 kB / 391.4 MB, free: 31.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.2185, allocations: 202 kB / 391.6 MB, free: 31.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2185, allocations: 0 / 391.6 MB, free: 31.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000418/0.2189, allocations: 91.84 kB / 391.7 MB, free: 31.05 MB / 298.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[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.0001235/0.2191, allocations: 141.8 kB / 391.9 MB, free: 30.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007638/0.2198, allocations: 0.5492 MB / 392.4 MB, free: 30.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2199, allocations: 0 / 392.4 MB, free: 30.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004095/0.2203, allocations: 366.6 kB / 392.8 MB, free: 29.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.2214, allocations: 297.3 kB / 393.1 MB, free: 29.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.2224, allocations: 1.087 MB / 394.2 MB, free: 28.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.2226, allocations: 0.8111 MB / 395 MB, free: 27.69 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009936/0.2236, allocations: 0.7549 MB / 395.7 MB, free: 26.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005613/0.2242, allocations: 262.8 kB / 396 MB, free: 26.68 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2242, allocations: 0 / 396 MB, free: 26.68 MB / 298.7 MB Notification: Performance of Templates: time 0.01017/0.2344, allocations: 10.54 MB / 406.5 MB, free: 15.94 MB / 298.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches