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.001366/0.001367, allocations: 109.4 kB / 17.73 MB, free: 5.344 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.001385/0.001385, allocations: 192.2 kB / 18.66 MB, free: 4.418 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.745/1.745, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001358/0.001358, allocations: 51.94 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1229, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003711/0.1266, allocations: 2.132 MB / 377.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.1294, allocations: 1.17 MB / 378.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1296, allocations: 4 kB / 378.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.1298, allocations: 43.58 kB / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.1299, allocations: 43.59 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005718/0.1305, allocations: 171.7 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005633/0.1311, allocations: 467.6 kB / 379.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003489/0.1314, allocations: 160.9 kB / 379.3 MB, free: 388 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2962/0.4277, allocations: 0.8325 MB / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006571/0.4284, allocations: 252.5 kB / 380.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001766/0.4286, allocations: 44.62 kB / 380.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.4287, allocations: 43.03 kB / 380.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002741/0.429, allocations: 151.5 kB / 380.6 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002772/0.4293, allocations: 218.6 kB / 380.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.4306, allocations: 0.9224 MB / 381.8 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4306, allocations: 1.375 kB / 381.8 MB, free: 9.969 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4306, allocations: 1.031 kB / 381.8 MB, free: 9.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.4307, allocations: 0 / 381.8 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.001569/0.4322, allocations: 0.8699 MB / 382.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.4323, allocations: 9.938 kB / 382.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.4325, allocations: 49 kB / 382.7 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.433, allocations: 351.3 kB / 383 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.313e-05/0.4331, allocations: 23.28 kB / 383.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.93e-05/0.4332, allocations: 35.97 kB / 383.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.4343, allocations: 489.3 kB / 383.6 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.4343, allocations: 8.656 kB / 383.6 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.53e-05/0.4344, allocations: 16.62 kB / 383.6 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.4344, allocations: 7.594 kB / 383.6 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008492/0.4353, allocations: 376.8 kB / 384 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.4374, allocations: 1.114 MB / 385.1 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.4386, allocations: 433.5 kB / 385.5 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003911/0.439, allocations: 183.8 kB / 385.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.7e-05/0.4391, allocations: 5.312 kB / 385.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008458/0.4399, allocations: 346.9 kB / 386 MB, free: 8.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.935e-06/0.4399, allocations: 0 / 386 MB, free: 8.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001777/0.4417, allocations: 0.728 MB / 386.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.362e-05/0.4418, allocations: 118.8 kB / 386.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000459/0.4423, allocations: 303 kB / 387.2 MB, free: 8.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.805e-05/0.4424, allocations: 40.66 kB / 387.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.4425, allocations: 179.6 kB / 387.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.4427, allocations: 80.06 kB / 387.5 MB, free: 8.027 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003319/0.443, allocations: 186 kB / 387.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.61e-05/0.4431, allocations: 343.4 kB / 388 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004088/0.4435, allocations: 186.5 kB / 388.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000439/0.444, allocations: 233.5 kB / 388.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009095/0.4449, allocations: 0.5222 MB / 388.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4449, allocations: 0 / 388.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001321/0.4462, allocations: 0.6474 MB / 389.6 MB, free: 6.973 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.164e-05/0.4463, allocations: 61.23 kB / 389.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.4463, allocations: 1.188 kB / 389.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.4463, allocations: 2.469 kB / 389.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.4465, allocations: 63.05 kB / 389.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.4466, allocations: 6.969 kB / 389.7 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.4469, allocations: 31.5 kB / 389.7 MB, free: 6.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004082/0.4473, allocations: 281.3 kB / 390 MB, free: 6.867 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.000387/0.4477, allocations: 290.9 kB / 390.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.663e-05/0.4478, allocations: 32.25 kB / 390.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.286e-05/0.4478, allocations: 34.83 kB / 390.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4479, allocations: 7.562 kB / 390.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.4479, allocations: 0 / 390.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.4479, allocations: 2.016 kB / 390.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007483/0.4486, allocations: 483.1 kB / 390.8 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.4487, allocations: 2.375 kB / 390.8 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.4488, allocations: 48.12 kB / 390.9 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.4488, allocations: 2.375 kB / 390.9 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.4489, allocations: 49.7 kB / 390.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.4489, allocations: 1.281 kB / 390.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.4489, allocations: 4.844 kB / 390.9 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.4501, allocations: 0.6091 MB / 391.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002809/0.4504, allocations: 200.8 kB / 391.7 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.4505, allocations: 17.28 kB / 391.8 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.4507, allocations: 17.45 kB / 391.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002715/0.451, allocations: 95.86 kB / 391.9 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004036/0.4514, allocations: 279.7 kB / 392.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002728/0.4516, allocations: 201.4 kB / 392.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4517, allocations: 0 / 392.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000577/0.4522, allocations: 98.94 kB / 392.4 MB, free: 5.715 MB / 318.1 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.000233/0.4525, allocations: 147.3 kB / 392.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.4536, allocations: 0.5468 MB / 393.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4536, allocations: 0 / 393.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005311/0.4541, allocations: 361.9 kB / 393.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.4556, allocations: 328.8 kB / 393.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.457, allocations: 0.7008 MB / 394.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.4573, allocations: 0.813 MB / 395.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00222/0.4595, allocations: 0.746 MB / 396.1 MB, free: 3.578 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.4606, allocations: 270.3 kB / 396.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of SimCode: time 2.254e-06/0.4607, allocations: 0 / 396.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of Templates: time 0.03324/0.4939, allocations: 10.92 MB / 407.2 MB, free: 14.38 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/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