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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 84.39 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 170.7 kB / 25.61 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.097/1.097, allocations: 158.6 MB / 187.5 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5094,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=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.314e-06/2.314e-06, allocations: 0 / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.485e-05/3.716e-05, allocations: 2.312 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004676/0.004713, allocations: 2.009 MB / 253.5 MB, free: 5.223 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003/0.007713, allocations: 1.131 MB / 254.6 MB, free: 4.082 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.007953, allocations: 4 kB / 254.6 MB, free: 4.078 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000268/0.008221, allocations: 55.5 kB / 254.7 MB, free: 4.023 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.008428, allocations: 43.59 kB / 254.7 MB, free: 3.98 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008294/0.009258, allocations: 187.6 kB / 254.9 MB, free: 3.797 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007099/0.009968, allocations: 471.5 kB / 255.4 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.01028, allocations: 113.3 kB / 255.5 MB, free: 3.227 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.01158, allocations: 0.9164 MB / 256.4 MB, free: 2.309 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005638/0.01215, allocations: 231.3 kB / 256.6 MB, free: 2.082 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002281/0.01237, allocations: 43.94 kB / 256.7 MB, free: 2.039 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.01249, allocations: 44 kB / 256.7 MB, free: 1.996 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002369/0.01273, allocations: 155.4 kB / 256.9 MB, free: 1.84 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003061/0.01303, allocations: 143.5 kB / 257 MB, free: 1.699 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008725/0.0139, allocations: 0.7279 MB / 257.7 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.01391, allocations: 0 / 257.7 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01391, allocations: 0 / 257.7 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.01393, allocations: 4 kB / 257.7 MB, free: 0.9648 MB / 234.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.001566/0.0155, allocations: 0.9082 MB / 258.6 MB, free: 4 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.028e-05/0.01558, allocations: 19.97 kB / 258.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.0158, allocations: 80.66 kB / 258.7 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.01627, allocations: 279.4 kB / 259 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.713e-05/0.01633, allocations: 29.03 kB / 259 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.973e-05/0.01642, allocations: 36.36 kB / 259.1 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009214/0.01734, allocations: 410.5 kB / 259.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.01736, allocations: 4.188 kB / 259.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.188e-05/0.01742, allocations: 20.38 kB / 259.5 MB, free: 15.1 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.01744, allocations: 11.94 kB / 259.5 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.0179, allocations: 239.9 kB / 259.7 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.01966, allocations: 0.8948 MB / 260.6 MB, free: 13.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007548/0.02042, allocations: 347.5 kB / 261 MB, free: 13.55 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.02065, allocations: 155.5 kB / 261.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.0207, allocations: 16.22 kB / 261.1 MB, free: 13.37 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004018/0.02111, allocations: 320.1 kB / 261.5 MB, free: 13.03 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 3.497e-06/0.02111, allocations: 0 / 261.5 MB, free: 13.03 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.001059/0.02217, allocations: 0.6438 MB / 262.1 MB, free: 12.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.02223, allocations: 106.8 kB / 262.2 MB, free: 12.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.02259, allocations: 340 kB / 262.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.031e-05/0.02265, allocations: 45.64 kB / 262.6 MB, free: 11.81 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.0228, allocations: 231.6 kB / 262.8 MB, free: 11.58 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.02291, allocations: 83.36 kB / 262.9 MB, free: 11.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002918/0.0232, allocations: 203.7 kB / 263.1 MB, free: 11.29 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.0234, allocations: 0.5195 MB / 263.6 MB, free: 10.76 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.02362, allocations: 140.3 kB / 263.7 MB, free: 10.61 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.02387, allocations: 214.7 kB / 263.9 MB, free: 10.37 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004928/0.02436, allocations: 369 kB / 264.3 MB, free: 9.965 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.02437, allocations: 8 kB / 264.3 MB, free: 9.957 MB / 250.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000691/0.02506, allocations: 0.5545 MB / 264.9 MB, free: 9.371 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.705e-05/0.02512, allocations: 63.39 kB / 264.9 MB, free: 9.297 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.02513, allocations: 4.156 kB / 264.9 MB, free: 9.293 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.02515, allocations: 0 / 264.9 MB, free: 9.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.02527, allocations: 63.91 kB / 265 MB, free: 9.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.02528, allocations: 7.984 kB / 265 MB, free: 9.223 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.02544, allocations: 27.88 kB / 265 MB, free: 9.195 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002104/0.02565, allocations: 283.7 kB / 265.3 MB, free: 8.918 MB / 250.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.000243/0.02589, allocations: 271.9 kB / 265.6 MB, free: 8.629 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.216e-05/0.02597, allocations: 51.75 kB / 265.6 MB, free: 8.578 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.439e-05/0.02603, allocations: 30.95 kB / 265.7 MB, free: 8.551 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.02603, allocations: 4 kB / 265.7 MB, free: 8.547 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.02604, allocations: 0 / 265.7 MB, free: 8.547 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.02604, allocations: 4 kB / 265.7 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.02639, allocations: 292.9 kB / 266 MB, free: 8.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.0264, allocations: 0 / 266 MB, free: 8.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.841e-05/0.02646, allocations: 51.91 kB / 266 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.02647, allocations: 0 / 266 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.02652, allocations: 51.91 kB / 266.1 MB, free: 8.129 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.02652, allocations: 8 kB / 266.1 MB, free: 8.121 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.02652, allocations: 0 / 266.1 MB, free: 8.121 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005999/0.02712, allocations: 0.5466 MB / 266.6 MB, free: 7.527 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.02732, allocations: 123.7 kB / 266.7 MB, free: 7.406 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.383e-05/0.02738, allocations: 19.94 kB / 266.7 MB, free: 7.387 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.961e-05/0.02748, allocations: 23.98 kB / 266.8 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.02765, allocations: 87.91 kB / 266.9 MB, free: 7.277 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/0.02784, allocations: 283.7 kB / 267.1 MB, free: 7 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001115/0.02796, allocations: 201.1 kB / 267.3 MB, free: 6.805 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02796, allocations: 0 / 267.3 MB, free: 6.805 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003569/0.02831, allocations: 111.7 kB / 267.4 MB, free: 6.695 MB / 250.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.0001806/0.02849, allocations: 129.9 kB / 267.6 MB, free: 6.555 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005375/0.02903, allocations: 0.5135 MB / 268.1 MB, free: 5.988 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.02903, allocations: 0 / 268.1 MB, free: 5.988 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.02936, allocations: 341.7 kB / 268.4 MB, free: 5.613 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007893/0.03015, allocations: 378.6 kB / 268.8 MB, free: 5.258 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009153/0.03107, allocations: 0.6745 MB / 269.5 MB, free: 4.539 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.077e-05/0.03116, allocations: 105.1 kB / 269.6 MB, free: 4.418 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001151/0.03231, allocations: 0.7237 MB / 270.3 MB, free: 3.688 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008785/0.03319, allocations: 461.4 kB / 270.7 MB, free: 3.234 MB / 250.7 MB Notification: Performance of SimCode: time 1.693e-06/0.03319, allocations: 0 / 270.7 MB, free: 3.234 MB / 250.7 MB Notification: Performance of Templates: time 0.01513/0.04832, allocations: 12.14 MB / 282.9 MB, free: 6.918 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.203313983976841]