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.001532/0.001532, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007923/0.0007923, allocations: 82.7 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.96e-05/1.964e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.08089, allocations: 47.59 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2922/0.3732, allocations: 82.05 MB / 445.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.3734, allocations: 69.22 kB / 445.2 MB, free: 13.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08051/0.4539, allocations: 42.6 MB / 487.8 MB, free: 9.074 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.454, allocations: 0 / 487.8 MB, free: 9.074 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.737e-05/0.454, allocations: 12 kB / 487.8 MB, free: 9.062 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.001152/0.4552, allocations: 0.6861 MB / 488.5 MB, free: 8.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.4552, allocations: 8.031 kB / 488.5 MB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.4554, allocations: 51.44 kB / 488.6 MB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005745/0.456, allocations: 343.3 kB / 488.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.456, allocations: 15.95 kB / 488.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.242e-05/0.4561, allocations: 24 kB / 488.9 MB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000592/0.4567, allocations: 333.4 kB / 489.3 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.4574, allocations: 429.8 kB / 489.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.4574, allocations: 0 / 489.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.556e-05/0.4575, allocations: 8 kB / 489.7 MB, free: 7.082 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.4575, allocations: 8 kB / 489.7 MB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.4592, allocations: 1.011 MB / 490.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007555/0.46, allocations: 387.4 kB / 491.1 MB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.4602, allocations: 153.4 kB / 491.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.683e-05/0.4603, allocations: 8.219 kB / 491.2 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004086/0.4607, allocations: 307.3 kB / 491.5 MB, free: 5.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=35): time 2.244e-06/0.4607, allocations: 3.938 kB / 491.5 MB, free: 5.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007639/0.4615, allocations: 468.7 kB / 492 MB, free: 4.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.4615, allocations: 110.8 kB / 492.1 MB, free: 4.559 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.4618, allocations: 266 kB / 492.4 MB, free: 4.297 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.112e-05/0.4619, allocations: 37.7 kB / 492.4 MB, free: 4.254 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.462, allocations: 172.7 kB / 492.6 MB, free: 4.078 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.4622, allocations: 79 kB / 492.7 MB, free: 4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.797e-05/0.4622, allocations: 0 / 492.7 MB, free: 4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4623, allocations: 338.8 kB / 493 MB, free: 3.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002383/0.4626, allocations: 152.8 kB / 493.1 MB, free: 3.512 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.4629, allocations: 195.7 kB / 493.3 MB, free: 3.305 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.4631, allocations: 179.8 kB / 493.5 MB, free: 3.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4632, allocations: 3.938 kB / 493.5 MB, free: 3.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008002/0.464, allocations: 0.5127 MB / 494 MB, free: 2.605 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.63e-05/0.464, allocations: 59.41 kB / 494.1 MB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.464, allocations: 4 kB / 494.1 MB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.4641, allocations: 3.984 kB / 494.1 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.4643, allocations: 59.91 kB / 494.1 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.4643, allocations: 4 kB / 494.1 MB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.4646, allocations: 43.84 kB / 494.2 MB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002764/0.4649, allocations: 283.7 kB / 494.5 MB, free: 2.145 MB / 362.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.000273/0.4652, allocations: 201.5 kB / 494.7 MB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/0.4653, allocations: 31.62 kB / 494.7 MB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.443e-05/0.4654, allocations: 39.39 kB / 494.7 MB, free: 1.859 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4654, allocations: 4 kB / 494.7 MB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4654, allocations: 0 / 494.7 MB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4654, allocations: 0 / 494.7 MB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.466, allocations: 401.9 kB / 495.1 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.466, allocations: 0 / 495.1 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.4661, allocations: 51.91 kB / 495.2 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.4661, allocations: 7.938 kB / 495.2 MB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.556e-05/0.4662, allocations: 43.98 kB / 495.2 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.4662, allocations: 0 / 495.2 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4662, allocations: 4 kB / 495.2 MB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007277/0.467, allocations: 0.4966 MB / 495.7 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/0.4673, allocations: 192.6 kB / 495.9 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.4674, allocations: 15.95 kB / 495.9 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.4677, allocations: 35.88 kB / 496 MB, free: 0.5469 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.4679, allocations: 83.91 kB / 496 MB, free: 476 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002757/0.4682, allocations: 287.7 kB / 496.3 MB, free: 188 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001797/0.4683, allocations: 186 kB / 496.5 MB, free: 0 / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4684, allocations: 0 / 496.5 MB, free: 0 / 362.7 MB Notification: Performance of remove unused functions: time 0.0004886/0.4688, allocations: 72.16 kB / 496.6 MB, free: 15.93 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.0002326/0.4691, allocations: 142.5 kB / 496.7 MB, free: 15.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007222/0.4698, allocations: 0.4987 MB / 497.2 MB, free: 15.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4698, allocations: 4 kB / 497.2 MB, free: 15.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.4702, allocations: 334.4 kB / 497.6 MB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.4715, allocations: 270.2 kB / 497.8 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.4725, allocations: 0.5099 MB / 498.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.4729, allocations: 0.8111 MB / 499.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00132/0.4742, allocations: 0.7474 MB / 499.9 MB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007029/0.4749, allocations: 262.8 kB / 0.4884 GB, free: 12.27 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4749, allocations: 0 / 0.4884 GB, free: 12.27 MB / 378.7 MB Notification: Performance of Templates: time 0.01444/0.4894, allocations: 9.727 MB / 0.4979 GB, free: 2.305 MB / 378.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/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