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.001131/0.001131, allocations: 111.4 kB / 18.41 MB, free: 4.668 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.001398/0.001398, allocations: 187.1 kB / 19.34 MB, free: 3.742 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.276/1.276, 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.001234/0.001234, allocations: 55.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07228/0.07352, allocations: 46.61 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003011/0.07656, allocations: 2.143 MB / 378 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.07884, allocations: 1.166 MB / 379.1 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.07899, allocations: 8 kB / 379.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.07919, allocations: 43.58 kB / 379.2 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.07934, allocations: 47.58 kB / 379.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.07982, allocations: 171.8 kB / 379.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004766/0.08031, allocations: 459.6 kB / 379.8 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.08058, allocations: 164.9 kB / 380 MB, free: 384 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1469/0.2275, allocations: 0.8337 MB / 380.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/0.2279, allocations: 255.7 kB / 381.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001567/0.2281, allocations: 41.25 kB / 381.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.2282, allocations: 43.06 kB / 381.2 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.2284, allocations: 150.6 kB / 381.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.2286, allocations: 215.2 kB / 381.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008507/0.2295, allocations: 0.9291 MB / 382.5 MB, free: 9.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2295, allocations: 0.6094 kB / 382.5 MB, free: 9.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2295, allocations: 2.25 kB / 382.5 MB, free: 9.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.2295, allocations: 1.375 kB / 382.5 MB, free: 9.973 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.001132/0.2307, allocations: 0.884 MB / 383.3 MB, free: 9.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2307, allocations: 8.844 kB / 383.4 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.2309, allocations: 53.16 kB / 383.4 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.2312, allocations: 349.2 kB / 383.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.028e-05/0.2313, allocations: 23.78 kB / 383.8 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.364e-05/0.2314, allocations: 34.62 kB / 383.8 MB, free: 9.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.2323, allocations: 488.2 kB / 384.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2323, allocations: 3.938 kB / 384.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.583e-05/0.2324, allocations: 17.06 kB / 384.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.2324, allocations: 7.266 kB / 384.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007561/0.2331, allocations: 382.4 kB / 384.7 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.2348, allocations: 1.119 MB / 385.8 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.2359, allocations: 435.9 kB / 386.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003518/0.2362, allocations: 178.3 kB / 386.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.2363, allocations: 4.281 kB / 386.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000612/0.2369, allocations: 346.8 kB / 386.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.415e-06/0.237, allocations: 0 / 386.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001414/0.2384, allocations: 0.7282 MB / 387.5 MB, free: 8.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.2384, allocations: 115 kB / 387.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.2387, allocations: 308.4 kB / 387.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.153e-05/0.2387, allocations: 39.08 kB / 387.9 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.2388, allocations: 187.3 kB / 388.1 MB, free: 8.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.456e-05/0.2389, allocations: 83.88 kB / 388.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.2392, allocations: 182.2 kB / 388.4 MB, free: 7.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.423e-05/0.2393, allocations: 343.8 kB / 388.7 MB, free: 7.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/0.2397, allocations: 181.5 kB / 388.9 MB, free: 7.555 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003965/0.2401, allocations: 239.5 kB / 389.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007714/0.2409, allocations: 0.5239 MB / 389.6 MB, free: 7.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2409, allocations: 0 / 389.6 MB, free: 7.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001085/0.242, allocations: 0.6444 MB / 390.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.242, allocations: 63.59 kB / 390.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.242, allocations: 1.219 kB / 390.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.242, allocations: 3.641 kB / 390.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.2422, allocations: 59 kB / 390.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.2422, allocations: 2.828 kB / 390.4 MB, free: 6.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.2424, allocations: 28.34 kB / 390.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002566/0.2427, allocations: 284.6 kB / 390.7 MB, free: 6.824 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.0002858/0.243, allocations: 293.3 kB / 391 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.84e-05/0.2431, allocations: 33.19 kB / 391 MB, free: 6.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.122e-05/0.2431, allocations: 38.48 kB / 391.1 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2431, allocations: 3.375 kB / 391.1 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2431, allocations: 4 kB / 391.1 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.2434, allocations: 201.4 kB / 391.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.2435, allocations: 18.89 kB / 391.3 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.2437, allocations: 16.81 kB / 391.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.2439, allocations: 87.55 kB / 391.4 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001153/0.2451, allocations: 0.7958 MB / 392.2 MB, free: 5.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001045/0.2461, allocations: 0.7514 MB / 392.9 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003807/0.2465, allocations: 200.1 kB / 393.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001599/0.2467, allocations: 209.8 kB / 393.3 MB, free: 5.418 MB / 318.1 MB Notification: Performance of Backend: time 2e-07/0.2467, allocations: 3.938 kB / 393.3 MB, free: 5.414 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009708/0.2477, allocations: 490.2 kB / 393.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of SimCode: time 0.00182/0.2495, allocations: 1.33 MB / 395.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of Templates: time 0.01762/0.2671, allocations: 13.35 MB / 408.5 MB, free: 13.66 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