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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 107.2 kB / 18.4 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.001541, allocations: 191.3 kB / 19.34 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 55.92 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1033, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003592/0.1069, allocations: 2.135 MB / 378 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002877/0.1098, allocations: 1.166 MB / 379.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002431/0.1101, allocations: 4 kB / 379.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002517/0.1104, allocations: 47.56 kB / 379.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.1106, allocations: 43.59 kB / 379.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006824/0.1113, allocations: 171.7 kB / 379.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006783/0.112, allocations: 463.6 kB / 379.8 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.1123, allocations: 164.9 kB / 380 MB, free: 380 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2268/0.3391, allocations: 0.8362 MB / 380.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004599/0.3396, allocations: 249.3 kB / 381.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.3398, allocations: 42.41 kB / 381.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.3399, allocations: 41.88 kB / 381.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.3401, allocations: 153.1 kB / 381.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.3404, allocations: 219.7 kB / 381.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.3416, allocations: 0.9211 MB / 382.4 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3417, allocations: 0 / 382.4 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3417, allocations: 2.562 kB / 382.4 MB, free: 9.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.3417, allocations: 0 / 382.4 MB, free: 9.969 MB / 318.1 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.001516/0.3432, allocations: 0.8651 MB / 383.3 MB, free: 9.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.3433, allocations: 9.484 kB / 383.3 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.3434, allocations: 52.41 kB / 383.4 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005017/0.3439, allocations: 354.5 kB / 383.7 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.705e-05/0.344, allocations: 27.56 kB / 383.7 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3441, allocations: 34 kB / 383.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.3454, allocations: 486.6 kB / 384.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.3455, allocations: 3.938 kB / 384.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-05/0.3456, allocations: 17.41 kB / 384.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.3456, allocations: 11.22 kB / 384.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009747/0.3466, allocations: 376.5 kB / 384.7 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.3488, allocations: 1.113 MB / 385.8 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.35, allocations: 438.5 kB / 386.2 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003867/0.3504, allocations: 180 kB / 386.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.643e-05/0.3505, allocations: 3.219 kB / 386.4 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008151/0.3513, allocations: 349 kB / 386.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 3.677e-06/0.3513, allocations: 0 / 386.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001703/0.353, allocations: 0.7297 MB / 387.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.3531, allocations: 114.4 kB / 387.6 MB, free: 8.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003948/0.3535, allocations: 303.9 kB / 387.9 MB, free: 8.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.473e-05/0.3536, allocations: 44.02 kB / 387.9 MB, free: 8.227 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.3537, allocations: 178.9 kB / 388.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3539, allocations: 75.23 kB / 388.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003458/0.3542, allocations: 187.7 kB / 388.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.399e-05/0.3543, allocations: 339 kB / 388.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.3547, allocations: 188.6 kB / 388.8 MB, free: 7.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.3551, allocations: 236 kB / 389.1 MB, free: 7.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007708/0.3559, allocations: 0.521 MB / 389.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3559, allocations: 1.188 kB / 389.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001209/0.3571, allocations: 0.645 MB / 390.2 MB, free: 6.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.982e-05/0.3572, allocations: 64.33 kB / 390.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3572, allocations: 4.031 kB / 390.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.3572, allocations: 1.219 kB / 390.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.3574, allocations: 64.14 kB / 390.4 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.3574, allocations: 4.016 kB / 390.4 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.3577, allocations: 26.11 kB / 390.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003921/0.3581, allocations: 286.8 kB / 390.7 MB, free: 6.879 MB / 318.1 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.0003833/0.3585, allocations: 293.2 kB / 391 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.205e-05/0.3586, allocations: 27.44 kB / 391 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.128e-05/0.3587, allocations: 39.17 kB / 391 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.3587, allocations: 3.516 kB / 391 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.3587, allocations: 2.938 kB / 391 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.359, allocations: 195.8 kB / 391.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.3591, allocations: 18.59 kB / 391.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.3593, allocations: 20.97 kB / 391.3 MB, free: 6.453 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/0.3595, allocations: 82.95 kB / 391.3 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001358/0.3609, allocations: 0.8008 MB / 392.1 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001085/0.362, allocations: 0.7515 MB / 392.9 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004048/0.3624, allocations: 204.5 kB / 393.1 MB, free: 5.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000229/0.3627, allocations: 212.8 kB / 393.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of Backend: time 6.61e-07/0.3627, allocations: 0 / 393.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.3638, allocations: 491.7 kB / 393.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of SimCode: time 0.002626/0.3665, allocations: 1.317 MB / 395.1 MB, free: 4.199 MB / 318.1 MB Notification: Performance of Templates: time 0.02305/0.3895, allocations: 13.48 MB / 408.6 MB, free: 13.55 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches